#812CE2#812CE2
#812CE2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.4% C 0.248 H 298.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #812CE2 |
|---|---|
| RGB | rgb(129, 44, 226) |
| HSL | hsl(268, 76%, 53%) |
| HSV | hsv(268, 81%, 89%) |
| CMYK | cmyk(42.9%, 80.5%, 0%, 11.4%) |
| CIE-LAB | lab(41.15, 68.27, -76.51) |
| CIE-LCH | lch(41.15, 102.54, 311.74°) |
| OKLab | oklab(52.41% 0.1168 -0.2191) |
| OKLCH | oklch(52.41% 0.248 298) |
| XYZ | xyz(23.6778, 11.9591, 72.9976) |
| Luminance | 0.1196 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 1.43
Bluish Purple
#703BE7
ΔE00 3.30
Burple
#6832E3
ΔE00 3.61
Violet (survey)
#9A0EEA
ΔE00 3.81
Violet
#8F00FF
ΔE00 3.83
Vivid Purple
#9900FA
ΔE00 4.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#812CE2 #8DE22C
analogous
#2C32E2 #812CE2 #DC2CE2
triadic
#812CE2 #E2812C #2CE281
tetradic
#812CE2 #E22C32 #8DE22C #2CE2DC
square
#812CE2 #E22C32 #8DE22C #2CE2DC
split-complementary
#812CE2 #E2DC2C #32E22C
monochromatic
#461282 #6319B8 #812CE2 #A162E9 #C198F1
Accessibility & contrast
On white
6.19
#812CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#812CE2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #812CE2
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##812CE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##812CE2 | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061E7
Deuteranopia (green-blind)
#005FDF
Tritanopia (blue-blind)
#686189
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #812ce2; /* rgb */ color: rgb(129, 44, 226); /* oklch */ color: oklch(52.4% 0.248 298.0);
Tailwind
colors: {
custom: {
50: '#ae70ec',
500: '#812ce2',
950: '#000000',
},
}SCSS
$custom: #812ce2; $custom-light: #ae70ec; $custom-dark: #000000;
JSON
{
"hex": "#812ce2",
"rgb": {
"r": 129,
"g": 44,
"b": 226
},
"hsl": {
"h": 268.022,
"s": 75.833,
"l": 52.941
},
"oklch": {
"l": 0.5241,
"c": 0.24828,
"h": 298
},
"luminance": 0.11959
}Semantic roles & 50–950 ramp
primary
#812CE2
secondary
#B7DC8E
accent
#F2359A
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120816
muted
#817B84