#5B259E#5B259E
#5B259E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.181 H 298.2°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #5B259E |
|---|---|
| RGB | rgb(91, 37, 158) |
| HSL | hsl(267, 62%, 38%) |
| HSV | hsv(267, 77%, 62%) |
| CMYK | cmyk(42.4%, 76.6%, 0%, 38%) |
| CIE-LAB | lab(29.45, 48.82, -55.86) |
| CIE-LCH | lch(29.45, 74.19, 311.15°) |
| OKLab | oklab(41.39% 0.0858 -0.1598) |
| OKLCH | oklch(41.39% 0.181 298.2) |
| XYZ | xyz(11.1459, 6.0157, 32.9150) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.86
Indigo Blue
#3A18B1
ΔE00 5.92
Violet Blue
#510AC9
ΔE00 6.42
Purple (survey)
#7E1E9C
ΔE00 6.72
Purple Blue
#5D21D0
ΔE00 6.83
Indigo
#4B0082
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B259E #689E25
analogous
#252B9E #5B259E #97259E
triadic
#5B259E #9E5B25 #259E5B
tetradic
#5B259E #9E252B #689E25 #259E97
square
#5B259E #9E252B #689E25 #259E97
split-complementary
#5B259E #9E9725 #2B9E25
monochromatic
#220E3B #3E196C #5B259E #7831CF #9863DA
Accessibility & contrast
On white
9.53
#5B259E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5B259E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B259E
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B259E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B259E | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4A4560
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5b259e; /* rgb */ color: rgb(91, 37, 158); /* oklch */ color: oklch(41.4% 0.181 298.2);
Tailwind
colors: {
custom: {
50: '#9065bc',
500: '#5b259e',
950: '#000000',
},
}SCSS
$custom: #5b259e; $custom-light: #9065bc; $custom-dark: #000000;
JSON
{
"hex": "#5b259e",
"rgb": {
"r": 91,
"g": 37,
"b": 158
},
"hsl": {
"h": 266.777,
"s": 62.051,
"l": 38.235
},
"oklch": {
"l": 0.41387,
"c": 0.18135,
"h": 298.2
},
"luminance": 0.06016
}Semantic roles & 50–950 ramp
primary
#5B259E
secondary
#95C05F
accent
#E5439D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81