Nearest named color · #A451CF
#A451CF
Nearest named color: Magenta Affair
#A451CF (rgb(164 81 207), hsl(280 57% 56%), oklch(0.591 0.195 312.3)) is closest to the named color Magenta Affair. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#A451CF
oklch(0.591 0.195 312.3)
Color conversions
- HEX
- #a451cf
- RGB
- rgb(164 81 207)
- HSL
- hsl(280 57% 56%)
- HWB
- hwb(280 32% 19%)
- OKLCH
- oklch(0.591 0.195 312.3)
- OKLab
- oklab(0.591 0.131 -0.144)
- CIE Lab
- lab(49.42 50.21 -51.65)
- LCH
- lch(49.42 72.04 314.2)
- CMYK
- cmyk(21% 61% 0% 19%)
Tints · Shades · Tones
Tints
- AD64D5
- B676DA
- C088E0
- C999E5
- D2AAEA
- DBBBEF
- E4CCF3
- EDDDF7
- F6EEFB
Shades
- 8E45B4
- 793A99
- 642F7F
- 502467
- 3D1A4F
- 2B1038
- 1A0723
- 0A0210
- 010002
Tones
- A158C7
- 9D5EC0
- 9A64B8
- 9669B1
- 936DA9
- 8F72A1
- 8B7699
- 887991
- 847D89
Color harmonies
Complementary +180°
- A451CF
Magenta Affair
- 559000
≈ Pistachio Flour
Analogous -30° +30°
- A451CF
Magenta Affair
- 7166EC
≈ If I Could Fly
- C6409D
≈ Lustful Wishes
Triadic +120° +240°
- A451CF
Magenta Affair
- AB6F00
≈ Cookie Dough
- 00908D
≈ Corfu Shallows
Split-complementary +150° +210°
- A451CF
Magenta Affair
- 8C7F00
≈ Moscow Papyrus
- 009566
≈ Emerald Lake
Tetradic +90° +180° +270°
- A451CF
Magenta Affair
- CF4E00
≈ Hot Bolognese
- 559000
≈ Pistachio Flour
- 008BAC
≈ Corfu Waters
Contrast & accessibility
Ag
AAOn white
WCAG 4.50:1 · APCA Lc 71
Ag
AAOn black
WCAG 4.65:1 · APCA Lc 31
Best text color: #000000
WCAG 4.65:1 (AA) · APCA Lc 31
Contrast pairs
Code snippets
CSS
:root {
--magenta-affair: #a451cf;
--magenta-affair-rgb: 164 81 207;
--magenta-affair-oklch: oklch(0.591 0.195 312.3);
}
.element {
color: var(--magenta-affair);
background-color: hsl(280 57% 56%);
border-color: oklch(0.591 0.195 312.3);
}Tailwind CSS v4
@theme {
--color-magenta-affair: #a451cf;
--color-magenta-affair-50: #ffe5ff;
--color-magenta-affair-100: #ffd5ff;
--color-magenta-affair-200: #f3bbff;
--color-magenta-affair-300: #dc97fc;
--color-magenta-affair-400: #c577f0;
--color-magenta-affair-500: #b153e1;
--color-magenta-affair-600: #9547bd;
--color-magenta-affair-700: #783998;
--color-magenta-affair-800: #572973;
--color-magenta-affair-900: #3d1c51;
--color-magenta-affair-950: #260b36;
}SCSS
$magenta-affair: #a451cf;
$magenta-affair-rgb: 164, 81, 207;
$magenta-affair-light: mix(#fff, $magenta-affair, 20%);
$magenta-affair-dark: mix(#000, $magenta-affair, 20%);
.element {
color: $magenta-affair;
box-shadow: 0 0 0 2px rgba($magenta-affair, 0.35);
}