#A12A98#A12A98
#A12A98 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.195 H 331.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #A12A98 |
|---|---|
| RGB | rgb(161, 42, 152) |
| HSL | hsl(305, 59%, 40%) |
| HSV | hsv(305, 74%, 63%) |
| CMYK | cmyk(0%, 73.9%, 5.6%, 36.9%) |
| CIE-LAB | lab(40.41, 60.04, -34.03) |
| CIE-LCH | lch(40.41, 69.01, 330.45°) |
| OKLab | oklab(51.21% 0.1715 -0.0937) |
| OKLCH | oklch(51.21% 0.195 331.3) |
| XYZ | xyz(21.1934, 11.5017, 30.8035) |
| Luminance | 0.1150 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.35
Barney Purple
#A00498
ΔE00 3.24
Ugly Purple
#A442A0
ΔE00 4.43
Medium Purple
#9E43A2
ΔE00 4.46
Barney
#AC1DB8
ΔE00 5.30
Purply
#983FB2
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A12A98 #2AA133
analogous
#6F2AA1 #A12A98 #A12A5C
triadic
#A12A98 #98A12A #2A98A1
tetradic
#A12A98 #A16F2A #2AA133 #2A5CA1
square
#A12A98 #A16F2A #2AA133 #2A5CA1
split-complementary
#A12A98 #5CA12A #2AA16F
monochromatic
#40113C #701D6A #A12A98 #CC3CC1 #D96DD1
Accessibility & contrast
On white
6.36
#A12A98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#A12A98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A12A98
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A12A98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A12A98 | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#A8385E
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #a12a98; /* rgb */ color: rgb(161, 42, 152); /* oklch */ color: oklch(51.2% 0.195 331.3);
Tailwind
colors: {
custom: {
50: '#c070b7',
500: '#a12a98',
950: '#000000',
},
}SCSS
$custom: #a12a98; $custom-light: #c070b7; $custom-dark: #000000;
JSON
{
"hex": "#a12a98",
"rgb": {
"r": 161,
"g": 42,
"b": 152
},
"hsl": {
"h": 304.538,
"s": 58.621,
"l": 39.804
},
"oklch": {
"l": 0.51212,
"c": 0.19541,
"h": 331.3
},
"luminance": 0.115
}Semantic roles & 50–950 ramp
primary
#A12A98
secondary
#67C06E
accent
#E25246
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80