#A12B98#A12B98
#A12B98 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.3% C 0.194 H 331.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).
Color values
| HEX | #A12B98 |
|---|---|
| RGB | rgb(161, 43, 152) |
| HSL | hsl(305, 58%, 40%) |
| HSV | hsv(305, 73%, 63%) |
| CMYK | cmyk(0%, 73.3%, 5.6%, 36.9%) |
| CIE-LAB | lab(40.53, 59.70, -33.84) |
| CIE-LCH | lch(40.53, 68.63, 330.45°) |
| OKLab | oklab(51.3% 0.1705 -0.0932) |
| OKLCH | oklch(51.3% 0.194 331.3) |
| XYZ | xyz(21.2293, 11.5735, 30.8155) |
| Luminance | 0.1157 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.37
Barney Purple
#A00498
ΔE00 3.38
Ugly Purple
#A442A0
ΔE00 4.30
Medium Purple
#9E43A2
ΔE00 4.34
Barney
#AC1DB8
ΔE00 5.32
Purply
#983FB2
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A12B98 #2BA134
analogous
#6F2BA1 #A12B98 #A12B5D
triadic
#A12B98 #98A12B #2B98A1
tetradic
#A12B98 #A16F2B #2BA134 #2B5DA1
square
#A12B98 #A16F2B #2BA134 #2B5DA1
split-complementary
#A12B98 #5DA12B #2BA16F
monochromatic
#40113D #711E6A #A12B98 #CB3EC1 #D86ED0
Accessibility & contrast
On white
6.34
#A12B98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#A12B98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A12B98
6.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A12B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A12B98 | 1.00 | 6.34 | 3.31 | 6.34 |
| #FFFFFF | 6.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#21559B
Deuteranopia (green-blind)
#506595
Tritanopia (blue-blind)
#A8395F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #a12b98; /* rgb */ color: rgb(161, 43, 152); /* oklch */ color: oklch(51.3% 0.194 331.3);
Tailwind
colors: {
custom: {
50: '#c070b7',
500: '#a12b98',
950: '#000000',
},
}SCSS
$custom: #a12b98; $custom-light: #c070b7; $custom-dark: #000000;
JSON
{
"hex": "#a12b98",
"rgb": {
"r": 161,
"g": 43,
"b": 152
},
"hsl": {
"h": 304.576,
"s": 57.843,
"l": 40
},
"oklch": {
"l": 0.51296,
"c": 0.19431,
"h": 331.3
},
"luminance": 0.11572
}Semantic roles & 50–950 ramp
primary
#A12B98
secondary
#69BF6F
accent
#E15247
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80