#5B249E#5B249E
#5B249E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.182 H 298.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5B249E |
|---|---|
| RGB | rgb(91, 36, 158) |
| HSL | hsl(267, 63%, 38%) |
| HSV | hsv(267, 77%, 62%) |
| CMYK | cmyk(42.4%, 77.2%, 0%, 38%) |
| CIE-LAB | lab(29.30, 49.26, -56.12) |
| CIE-LCH | lch(29.30, 74.67, 311.28°) |
| OKLab | oklab(41.28% 0.0866 -0.1605) |
| OKLCH | oklch(41.28% 0.182 298.4) |
| XYZ | xyz(11.1152, 5.9543, 32.9048) |
| Luminance | 0.0595 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.99
Indigo Blue
#3A18B1
ΔE00 5.85
Violet Blue
#510AC9
ΔE00 6.35
Purple (survey)
#7E1E9C
ΔE00 6.71
Indigo
#4B0082
ΔE00 6.74
Purple Blue
#5D21D0
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B249E #679E24
analogous
#242A9E #5B249E #98249E
triadic
#5B249E #9E5B24 #249E5B
tetradic
#5B249E #9E242A #679E24 #249E98
square
#5B249E #9E242A #679E24 #249E98
split-complementary
#5B249E #9E9824 #2A9E24
monochromatic
#220D3A #3E196C #5B249E #782FD0 #9861DB
Accessibility & contrast
On white
9.58
#5B249E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5B249E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B249E
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B249E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B249E | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4A4560
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5b249e; /* rgb */ color: rgb(91, 36, 158); /* oklch */ color: oklch(41.3% 0.182 298.4);
Tailwind
colors: {
custom: {
50: '#9065bc',
500: '#5b249e',
950: '#000000',
},
}SCSS
$custom: #5b249e; $custom-light: #9065bc; $custom-dark: #000000;
JSON
{
"hex": "#5b249e",
"rgb": {
"r": 91,
"g": 36,
"b": 158
},
"hsl": {
"h": 267.049,
"s": 62.887,
"l": 38.039
},
"oklch": {
"l": 0.41278,
"c": 0.18242,
"h": 298.4
},
"luminance": 0.05955
}Semantic roles & 50–950 ramp
primary
#5B249E
secondary
#94C05E
accent
#E6429C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81