#A12C98#A12C98
#A12C98 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.4% C 0.193 H 331.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #A12C98 |
|---|---|
| RGB | rgb(161, 44, 152) |
| HSL | hsl(305, 57%, 40%) |
| HSV | hsv(305, 73%, 63%) |
| CMYK | cmyk(0%, 72.7%, 5.6%, 36.9%) |
| CIE-LAB | lab(40.65, 59.36, -33.66) |
| CIE-LCH | lch(40.65, 68.24, 330.45°) |
| OKLab | oklab(51.38% 0.1695 -0.0926) |
| OKLCH | oklch(51.38% 0.193 331.3) |
| XYZ | xyz(21.2661, 11.6471, 30.8277) |
| Luminance | 0.1164 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.40
Barney Purple
#A00498
ΔE00 3.52
Ugly Purple
#A442A0
ΔE00 4.17
Medium Purple
#9E43A2
ΔE00 4.22
Barney
#AC1DB8
ΔE00 5.35
Purply
#983FB2
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A12C98 #2CA135
analogous
#6F2CA1 #A12C98 #A12C5E
triadic
#A12C98 #98A12C #2C98A1
tetradic
#A12C98 #A16F2C #2CA135 #2C5EA1
square
#A12C98 #A16F2C #2CA135 #2C5EA1
split-complementary
#A12C98 #5EA12C #2CA16F
monochromatic
#41123D #711F6B #A12C98 #CB40C0 #D870D0
Accessibility & contrast
On white
6.31
#A12C98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#A12C98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A12C98
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A12C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A12C98 | 1.00 | 6.31 | 3.33 | 6.31 |
| #FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23559B
Deuteranopia (green-blind)
#506695
Tritanopia (blue-blind)
#A83A5F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #a12c98; /* rgb */ color: rgb(161, 44, 152); /* oklch */ color: oklch(51.4% 0.193 331.3);
Tailwind
colors: {
custom: {
50: '#c071b7',
500: '#a12c98',
950: '#000000',
},
}SCSS
$custom: #a12c98; $custom-light: #c071b7; $custom-dark: #000000;
JSON
{
"hex": "#a12c98",
"rgb": {
"r": 161,
"g": 44,
"b": 152
},
"hsl": {
"h": 304.615,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.51382,
"c": 0.19318,
"h": 331.3
},
"luminance": 0.11645
}Semantic roles & 50–950 ramp
primary
#A12C98
secondary
#6ABF70
accent
#E05347
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80