#812EA6#812EA6
#812EA6 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.189 H 313.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #812EA6 |
|---|---|
| RGB | rgb(129, 46, 166) |
| HSL | hsl(282, 57%, 42%) |
| HSV | hsv(282, 72%, 65%) |
| CMYK | cmyk(22.3%, 72.3%, 0%, 34.9%) |
| CIE-LAB | lab(36.70, 54.09, -48.69) |
| CIE-LCH | lch(36.70, 72.78, 318.00°) |
| OKLab | oklab(47.82% 0.129 -0.1374) |
| OKLCH | oklch(47.82% 0.189 313.2) |
| XYZ | xyz(16.9120, 9.3748, 36.9876) |
| Luminance | 0.0937 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.98
Rebeccapurple
#663399
ΔE00 5.15
Purply
#983FB2
ΔE00 6.14
Darkviolet
#9400D3
ΔE00 6.75
Darkmagenta
#8B008B
ΔE00 6.82
Darkorchid
#9932CC
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#812EA6 #53A62E
analogous
#452EA6 #812EA6 #A62E8F
triadic
#812EA6 #A6812E #2EA681
tetradic
#812EA6 #A6452E #53A62E #2E8FA6
square
#812EA6 #A6452E #53A62E #2E8FA6
split-complementary
#812EA6 #8FA62E #2EA645
monochromatic
#371346 #5C2176 #812EA6 #A246CC #BA76D9
Accessibility & contrast
On white
7.30
#812EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#812EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #812EA6
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##812EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##812EA6 | 1.00 | 7.30 | 2.87 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2358A3
Tritanopia (blue-blind)
#7D4867
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #812ea6; /* rgb */ color: rgb(129, 46, 166); /* oklch */ color: oklch(47.8% 0.189 313.2);
Tailwind
colors: {
custom: {
50: '#aa6ec1',
500: '#812ea6',
950: '#000000',
},
}SCSS
$custom: #812ea6; $custom-light: #aa6ec1; $custom-dark: #000000;
JSON
{
"hex": "#812ea6",
"rgb": {
"r": 129,
"g": 46,
"b": 166
},
"hsl": {
"h": 281.5,
"s": 56.604,
"l": 41.569
},
"oklch": {
"l": 0.47821,
"c": 0.18852,
"h": 313.2
},
"luminance": 0.09374
}Semantic roles & 50–950 ramp
primary
#812EA6
secondary
#88C16F
accent
#E04877
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81