#6B31C2#6B31C2
#6B31C2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.209 H 295.5°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).
Color values
| HEX | #6B31C2 |
|---|---|
| RGB | rgb(107, 49, 194) |
| HSL | hsl(264, 60%, 48%) |
| HSV | hsv(264, 75%, 76%) |
| CMYK | cmyk(44.8%, 74.7%, 0%, 23.9%) |
| CIE-LAB | lab(36.40, 55.28, -65.91) |
| CIE-LCH | lch(36.40, 86.02, 309.99°) |
| OKLab | oklab(47.66% 0.09 -0.1888) |
| OKLCH | oklch(47.66% 0.209 295.5) |
| XYZ | xyz(16.8967, 9.2170, 51.9173) |
| Luminance | 0.0922 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.67
Bluey Purple
#6241C7
ΔE00 3.85
Blurple
#5539CC
ΔE00 4.02
Burple
#6832E3
ΔE00 4.40
Blue With A Hint Of Purple
#533CC6
ΔE00 4.46
Purpley Blue
#5F34E7
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6B31C2 #88C231
analogous
#313FC2 #6B31C2 #B331C2
triadic
#6B31C2 #C26B31 #31C26B
tetradic
#6B31C2 #C2313F #88C231 #31C2B3
square
#6B31C2 #C2313F #88C231 #31C2B3
split-complementary
#6B31C2 #C2B331 #3FC231
monochromatic
#351860 #502591 #6B31C2 #8C5BD6 #AE8CE2
Accessibility & contrast
On white
7.39
#6B31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#6B31C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6B31C2
7.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6B31C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6B31C2 | 1.00 | 7.39 | 2.84 | 7.39 |
| #FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#535877
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #6b31c2; /* rgb */ color: rgb(107, 49, 194); /* oklch */ color: oklch(47.7% 0.209 295.5);
Tailwind
colors: {
custom: {
50: '#9d6fd6',
500: '#6b31c2',
950: '#000000',
},
}SCSS
$custom: #6b31c2; $custom-light: #9d6fd6; $custom-dark: #000000;
JSON
{
"hex": "#6b31c2",
"rgb": {
"r": 107,
"g": 49,
"b": 194
},
"hsl": {
"h": 264,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.47659,
"c": 0.20916,
"h": 295.5
},
"luminance": 0.09217
}Semantic roles & 50–950 ramp
primary
#6B31C2
secondary
#AFCC83
accent
#E345A4
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0814
muted
#7F7B83