#5F2FE2#5F2FE2
#5F2FE2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.246 H 285.3°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2FE2 |
|---|---|
| RGB | rgb(95, 47, 226) |
| HSL | hsl(256, 76%, 54%) |
| HSV | hsv(256, 79%, 89%) |
| CMYK | cmyk(58%, 79.2%, 0%, 11.4%) |
| CIE-LAB | lab(37.76, 62.95, -82.22) |
| CIE-LCH | lch(37.76, 103.55, 307.44°) |
| OKLab | oklab(49.21% 0.0646 -0.2369) |
| OKLCH | oklch(49.21% 0.246 285.3) |
| XYZ | xyz(19.4591, 9.9557, 72.8330) |
| Luminance | 0.0996 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley Blue
#5F34E7
ΔE00 1.21
Burple
#6832E3
ΔE00 1.40
Purply Blue
#661AEE
ΔE00 2.53
Purplish Blue
#601EF9
ΔE00 2.80
Blurple
#5539CC
ΔE00 3.35
Purple Blue
#5D21D0
ΔE00 3.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2FE2 #B2E22F
analogous
#2F58E2 #5F2FE2 #B82FE2
triadic
#5F2FE2 #E25F2F #2FE25F
tetradic
#5F2FE2 #E22F58 #B2E22F #2FE2B8
square
#5F2FE2 #E22F58 #B2E22F #2FE2B8
split-complementary
#5F2FE2 #E2B82F #58E22F
monochromatic
#311284 #451ABA #5F2FE2 #8865E9 #B29AF1
Accessibility & contrast
On white
7.02
#5F2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#5F2FE2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2FE2
7.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2FE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2FE2 | 1.00 | 7.02 | 2.99 | 7.02 |
| #FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EE7
Deuteranopia (green-blind)
#0053DF
Tritanopia (blue-blind)
#116589
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #5f2fe2; /* rgb */ color: rgb(95, 47, 226); /* oklch */ color: oklch(49.2% 0.246 285.3);
Tailwind
colors: {
custom: {
50: '#9b6fed',
500: '#5f2fe2',
950: '#000000',
},
}SCSS
$custom: #5f2fe2; $custom-light: #9b6fed; $custom-dark: #000000;
JSON
{
"hex": "#5f2fe2",
"rgb": {
"r": 95,
"g": 47,
"b": 226
},
"hsl": {
"h": 256.089,
"s": 75.527,
"l": 53.529
},
"oklch": {
"l": 0.49206,
"c": 0.24555,
"h": 285.3
},
"luminance": 0.09957
}Semantic roles & 50–950 ramp
primary
#5F2FE2
secondary
#C8DD90
accent
#F236C0
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#100816
muted
#7F7B84