#5F2FA9#5F2FA9
#5F2FA9 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.183 H 295.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2FA9 |
|---|---|
| RGB | rgb(95, 47, 169) |
| HSL | hsl(264, 56%, 42%) |
| HSV | hsv(264, 72%, 66%) |
| CMYK | cmyk(43.8%, 72.2%, 0%, 33.7%) |
| CIE-LAB | lab(32.55, 47.67, -57.43) |
| CIE-LCH | lch(32.55, 74.64, 309.69°) |
| OKLab | oklab(43.97% 0.0799 -0.1643) |
| OKLCH | oklch(43.97% 0.183 295.9) |
| XYZ | xyz(12.8954, 7.3302, 38.2639) |
| Luminance | 0.0733 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.40
Purple Blue
#5D21D0
ΔE00 5.49
Blue With A Hint Of Purple
#533CC6
ΔE00 5.73
Blurple
#5539CC
ΔE00 5.88
Ocean Blue
#4F42B5
ΔE00 6.06
Bluey Purple
#6241C7
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2FA9 #79A92F
analogous
#2F3CA9 #5F2FA9 #9C2FA9
triadic
#5F2FA9 #A95F2F #2FA95F
tetradic
#5F2FA9 #A92F3C #79A92F #2FA99C
square
#5F2FA9 #A92F3C #79A92F #2FA99C
split-complementary
#5F2FA9 #A99C2F #3CA92F
monochromatic
#291449 #442279 #5F2FA9 #7D49CC #9F79DA
Accessibility & contrast
On white
8.52
#5F2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#5F2FA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2FA9
8.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2FA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2FA9 | 1.00 | 8.52 | 2.47 | 8.52 |
| #FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#4B4E69
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #5f2fa9; /* rgb */ color: rgb(95, 47, 169); /* oklch */ color: oklch(44.0% 0.183 295.9);
Tailwind
colors: {
custom: {
50: '#936cc3',
500: '#5f2fa9',
950: '#000000',
},
}SCSS
$custom: #5f2fa9; $custom-light: #936cc3; $custom-dark: #000000;
JSON
{
"hex": "#5f2fa9",
"rgb": {
"r": 95,
"g": 47,
"b": 169
},
"hsl": {
"h": 263.607,
"s": 56.481,
"l": 42.353
},
"oklch": {
"l": 0.4397,
"c": 0.18273,
"h": 295.9
},
"luminance": 0.0733
}Semantic roles & 50–950 ramp
primary
#5F2FA9
secondary
#A2C272
accent
#E048A4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82