#812FC2#812FC2
#812FC2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.215 H 305.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).
Color values
| HEX | #812FC2 |
|---|---|
| RGB | rgb(129, 47, 194) |
| HSL | hsl(273, 61%, 47%) |
| HSV | hsv(273, 76%, 76%) |
| CMYK | cmyk(33.5%, 75.8%, 0%, 23.9%) |
| CIE-LAB | lab(38.89, 59.83, -61.72) |
| CIE-LCH | lch(38.89, 85.96, 314.11°) |
| OKLab | oklab(50.02% 0.1232 -0.1757) |
| OKLCH | oklch(50.02% 0.215 305) |
| XYZ | xyz(19.8052, 10.5953, 52.0302) |
| Luminance | 0.1060 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 4.03
Blueviolet
#8A2BE2
ΔE00 4.41
Darkorchid
#9932CC
ΔE00 4.63
Violet (survey)
#9A0EEA
ΔE00 5.99
Burple
#6832E3
ΔE00 6.10
Bluey Purple
#6241C7
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#812FC2 #70C22F
analogous
#372FC2 #812FC2 #C22FBA
triadic
#812FC2 #C2812F #2FC281
tetradic
#812FC2 #C2372F #70C22F #2FBAC2
square
#812FC2 #C2372F #70C22F #2FBAC2
split-complementary
#812FC2 #BAC22F #2FC237
monochromatic
#3F175F #602391 #812FC2 #9E58D6 #BB89E2
Accessibility & contrast
On white
6.73
#812FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#812FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #812FC2
6.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##812FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##812FC2 | 1.00 | 6.73 | 3.12 | 6.73 |
| #FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#755477
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #812fc2; /* rgb */ color: rgb(129, 47, 194); /* oklch */ color: oklch(50.0% 0.215 305.0);
Tailwind
colors: {
custom: {
50: '#ab70d5',
500: '#812fc2',
950: '#000000',
},
}SCSS
$custom: #812fc2; $custom-light: #ab70d5; $custom-dark: #000000;
JSON
{
"hex": "#812fc2",
"rgb": {
"r": 129,
"g": 47,
"b": 194
},
"hsl": {
"h": 273.469,
"s": 60.996,
"l": 47.255
},
"oklch": {
"l": 0.50018,
"c": 0.21461,
"h": 305
},
"luminance": 0.10595
}Semantic roles & 50–950 ramp
primary
#812FC2
secondary
#A2CC81
accent
#E4448B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83