#812CA9#812CA9
#812CA9 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.194 H 312.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #812CA9 |
|---|---|
| RGB | rgb(129, 44, 169) |
| HSL | hsl(281, 59%, 42%) |
| HSV | hsv(281, 74%, 66%) |
| CMYK | cmyk(23.7%, 74%, 0%, 33.7%) |
| CIE-LAB | lab(36.62, 55.54, -50.62) |
| CIE-LCH | lch(36.62, 75.14, 317.65°) |
| OKLab | oklab(47.83% 0.1306 -0.1431) |
| OKLCH | oklch(47.83% 0.194 312.4) |
| XYZ | xyz(17.1141, 9.3336, 38.4284) |
| Luminance | 0.0933 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.01
Rebeccapurple
#663399
ΔE00 5.22
Darkviolet
#9400D3
ΔE00 6.26
Purply
#983FB2
ΔE00 6.35
Darkorchid
#9932CC
ΔE00 6.62
Darkmagenta
#8B008B
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#812CA9 #54A92C
analogous
#432CA9 #812CA9 #A92C93
triadic
#812CA9 #A9812C #2CA981
tetradic
#812CA9 #A9432C #54A92C #2C93A9
square
#812CA9 #A9432C #54A92C #2C93A9
split-complementary
#812CA9 #93A92C #2CA943
monochromatic
#371348 #5C1F78 #812CA9 #A244CE #BA74DB
Accessibility & contrast
On white
7.33
#812CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#812CA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #812CA9
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##812CA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##812CA9 | 1.00 | 7.33 | 2.87 | 7.33 |
| #FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1C58A6
Tritanopia (blue-blind)
#7C4868
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #812ca9; /* rgb */ color: rgb(129, 44, 169); /* oklch */ color: oklch(47.8% 0.194 312.4);
Tailwind
colors: {
custom: {
50: '#aa6ec3',
500: '#812ca9',
950: '#000000',
},
}SCSS
$custom: #812ca9; $custom-light: #aa6ec3; $custom-dark: #000000;
JSON
{
"hex": "#812ca9",
"rgb": {
"r": 129,
"g": 44,
"b": 169
},
"hsl": {
"h": 280.8,
"s": 58.685,
"l": 41.765
},
"oklch": {
"l": 0.47832,
"c": 0.19374,
"h": 312.4
},
"luminance": 0.09333
}Semantic roles & 50–950 ramp
primary
#812CA9
secondary
#89C36E
accent
#E24678
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82