#A12F97#A12F97
#A12F97 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.6% C 0.189 H 331.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #A12F97 |
|---|---|
| RGB | rgb(161, 47, 151) |
| HSL | hsl(305, 55%, 41%) |
| HSV | hsv(305, 71%, 63%) |
| CMYK | cmyk(0%, 70.8%, 6.2%, 36.9%) |
| CIE-LAB | lab(40.97, 58.14, -32.55) |
| CIE-LCH | lch(40.97, 66.63, 330.76°) |
| OKLab | oklab(51.6% 0.1664 -0.0895) |
| OKLCH | oklch(51.6% 0.189 331.7) |
| XYZ | xyz(21.3004, 11.8462, 30.4368) |
| Luminance | 0.1184 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.49
Ugly Purple
#A442A0
ΔE00 3.80
Medium Purple
#9E43A2
ΔE00 3.95
Barney Purple
#A00498
ΔE00 4.01
Barney
#AC1DB8
ΔE00 5.63
Purply
#983FB2
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A12F97 #2FA139
analogous
#722FA1 #A12F97 #A12F5E
triadic
#A12F97 #97A12F #2F97A1
tetradic
#A12F97 #A1722F #2FA139 #2F5EA1
square
#A12F97 #A1722F #2FA139 #2F5EA1
split-complementary
#A12F97 #5EA12F #2FA172
monochromatic
#42133E #72216B #A12F97 #C945BD #D674CE
Accessibility & contrast
On white
6.23
#A12F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#A12F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A12F97
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A12F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A12F97 | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#526694
Tritanopia (blue-blind)
#A83B5F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #a12f97; /* rgb */ color: rgb(161, 47, 151); /* oklch */ color: oklch(51.6% 0.189 331.7);
Tailwind
colors: {
custom: {
50: '#c072b6',
500: '#a12f97',
950: '#000000',
},
}SCSS
$custom: #a12f97; $custom-light: #c072b6; $custom-dark: #000000;
JSON
{
"hex": "#a12f97",
"rgb": {
"r": 161,
"g": 47,
"b": 151
},
"hsl": {
"h": 305.263,
"s": 54.808,
"l": 40.784
},
"oklch": {
"l": 0.51596,
"c": 0.18892,
"h": 331.7
},
"luminance": 0.11844
}Semantic roles & 50–950 ramp
primary
#A12F97
secondary
#6EBE75
accent
#DE574A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80