#5E31F6#5E31F6
#5E31F6 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.3% C 0.265 H 282.2°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #5E31F6 |
|---|---|
| RGB | rgb(94, 49, 246) |
| HSL | hsl(254, 92%, 58%) |
| HSV | hsv(254, 80%, 96%) |
| CMYK | cmyk(61.8%, 80.1%, 0%, 3.5%) |
| CIE-LAB | lab(39.96, 67.37, -89.92) |
| CIE-LCH | lch(39.96, 112.36, 306.84°) |
| OKLab | oklab(51.3% 0.0559 -0.2594) |
| OKLCH | oklch(51.3% 0.265 282.2) |
| XYZ | xyz(22.3438, 11.2285, 88.1608) |
| Luminance | 0.1123 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley Blue
#5F34E7
ΔE00 1.69
Purplish Blue
#601EF9
ΔE00 2.29
Burple
#6832E3
ΔE00 2.38
Purpleish Blue
#6140EF
ΔE00 2.66
Bluish Purple
#703BE7
ΔE00 3.08
Light Royal Blue
#3A2EFE
ΔE00 3.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E31F6 #C9F631
analogous
#3166F6 #5E31F6 #C131F6
triadic
#5E31F6 #F65E31 #31F65E
tetradic
#5E31F6 #F63166 #C9F631 #31F6C1
square
#5E31F6 #F63166 #C9F631 #31F6C1
split-complementary
#5E31F6 #F6C131 #66F631
monochromatic
#2B07A5 #3B0AE0 #5E31F6 #8C6CF9 #BAA6FB
Accessibility & contrast
On white
6.47
#5E31F6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#5E31F6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5E31F6
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E31F6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E31F6 | 1.00 | 6.47 | 3.25 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064FB
Deuteranopia (green-blind)
#0057F3
Tritanopia (blue-blind)
#006E95
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #5e31f6; /* rgb */ color: rgb(94, 49, 246); /* oklch */ color: oklch(51.3% 0.265 282.2);
Tailwind
colors: {
custom: {
50: '#9e71fb',
500: '#5e31f6',
950: '#000000',
},
}SCSS
$custom: #5e31f6; $custom-light: #9e71fb; $custom-dark: #000000;
JSON
{
"hex": "#5e31f6",
"rgb": {
"r": 94,
"g": 49,
"b": 246
},
"hsl": {
"h": 253.706,
"s": 91.628,
"l": 57.843
},
"oklch": {
"l": 0.513,
"c": 0.26537,
"h": 282.2
},
"luminance": 0.1123
}Semantic roles & 50–950 ramp
primary
#5E31F6
secondary
#D7E99A
accent
#FF29CE
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100818
muted
#7F7B86