#A12E98#A12E98
#A12E98 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.191 H 331.3°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #A12E98 |
|---|---|
| RGB | rgb(161, 46, 152) |
| HSL | hsl(305, 56%, 41%) |
| HSV | hsv(305, 71%, 63%) |
| CMYK | cmyk(0%, 71.4%, 5.6%, 36.9%) |
| CIE-LAB | lab(40.90, 58.66, -33.27) |
| CIE-LCH | lch(40.90, 67.44, 330.44°) |
| OKLab | oklab(51.56% 0.1675 -0.0915) |
| OKLCH | oklch(51.56% 0.191 331.3) |
| XYZ | xyz(21.3424, 11.7997, 30.8532) |
| Luminance | 0.1180 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.48
Barney Purple
#A00498
ΔE00 3.82
Ugly Purple
#A442A0
ΔE00 3.89
Medium Purple
#9E43A2
ΔE00 3.98
Barney
#AC1DB8
ΔE00 5.41
Purply
#983FB2
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A12E98 #2EA137
analogous
#712EA1 #A12E98 #A12E5E
triadic
#A12E98 #98A12E #2E98A1
tetradic
#A12E98 #A1712E #2EA137 #2E5EA1
square
#A12E98 #A1712E #2EA137 #2E5EA1
split-complementary
#A12E98 #5EA12E #2EA171
monochromatic
#42133E #71206B #A12E98 #C943BF #D773CF
Accessibility & contrast
On white
6.25
#A12E98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#A12E98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A12E98
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A12E98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A12E98 | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25569B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#A83B60
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #a12e98; /* rgb */ color: rgb(161, 46, 152); /* oklch */ color: oklch(51.6% 0.191 331.3);
Tailwind
colors: {
custom: {
50: '#c072b7',
500: '#a12e98',
950: '#000000',
},
}SCSS
$custom: #a12e98; $custom-light: #c072b7; $custom-dark: #000000;
JSON
{
"hex": "#a12e98",
"rgb": {
"r": 161,
"g": 46,
"b": 152
},
"hsl": {
"h": 304.696,
"s": 55.556,
"l": 40.588
},
"oklch": {
"l": 0.5156,
"c": 0.19088,
"h": 331.3
},
"luminance": 0.11798
}Semantic roles & 50–950 ramp
primary
#A12E98
secondary
#6CBE73
accent
#DF5549
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80