#812E9A#812E9A
#812E9A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.177 H 317.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #812E9A |
|---|---|
| RGB | rgb(129, 46, 154) |
| HSL | hsl(286, 54%, 39%) |
| HSV | hsv(286, 70%, 60%) |
| CMYK | cmyk(16.2%, 70.1%, 0%, 39.6%) |
| CIE-LAB | lab(35.90, 51.59, -42.74) |
| CIE-LCH | lch(35.90, 66.99, 320.36°) |
| OKLab | oklab(47% 0.1302 -0.12) |
| OKLCH | oklch(47% 0.177 317.3) |
| XYZ | xyz(15.8621, 8.9549, 31.4585) |
| Luminance | 0.0895 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.70
Darkmagenta
#8B008B
ΔE00 5.37
Rebeccapurple
#663399
ΔE00 5.51
Warm Purple
#952E8F
ΔE00 5.51
Barney Purple
#A00498
ΔE00 6.23
Purple
#800080
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#812E9A #479A2E
analogous
#4B2E9A #812E9A #9A2E7D
triadic
#812E9A #9A812E #2E9A81
tetradic
#812E9A #9A4B2E #479A2E #2E7D9A
square
#812E9A #9A4B2E #479A2E #2E7D9A
split-complementary
#812E9A #7D9A2E #2E9A4B
monochromatic
#32123C #5A206B #812E9A #A73FC6 #BC6FD4
Accessibility & contrast
On white
7.52
#812E9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#812E9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #812E9A
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##812E9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##812E9A | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#315797
Tritanopia (blue-blind)
#804360
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #812e9a; /* rgb */ color: rgb(129, 46, 154); /* oklch */ color: oklch(47.0% 0.177 317.3);
Tailwind
colors: {
custom: {
50: '#a96eb8',
500: '#812e9a',
950: '#000000',
},
}SCSS
$custom: #812e9a; $custom-light: #a96eb8; $custom-dark: #000000;
JSON
{
"hex": "#812e9a",
"rgb": {
"r": 129,
"g": 46,
"b": 154
},
"hsl": {
"h": 286.111,
"s": 54,
"l": 39.216
},
"oklch": {
"l": 0.46996,
"c": 0.17704,
"h": 317.3
},
"luminance": 0.08954
}Semantic roles & 50–950 ramp
primary
#812E9A
secondary
#7CBB69
accent
#DD4A6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80