#5B239F#5B239F
#5B239F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.185 H 298.2°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #5B239F |
|---|---|
| RGB | rgb(91, 35, 159) |
| HSL | hsl(267, 64%, 38%) |
| HSV | hsv(267, 78%, 62%) |
| CMYK | cmyk(42.8%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(29.23, 49.95, -56.83) |
| CIE-LCH | lch(29.23, 75.66, 311.32°) |
| OKLab | oklab(41.26% 0.0872 -0.1626) |
| OKLCH | oklch(41.26% 0.185 298.2) |
| XYZ | xyz(11.1718, 5.9292, 33.3500) |
| Luminance | 0.0593 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.18
Indigo Blue
#3A18B1
ΔE00 5.70
Violet Blue
#510AC9
ΔE00 6.15
Purple Blue
#5D21D0
ΔE00 6.70
Indigo
#4B0082
ΔE00 6.70
Purple (survey)
#7E1E9C
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B239F #679F23
analogous
#23299F #5B239F #99239F
triadic
#5B239F #9F5B23 #239F5B
tetradic
#5B239F #9F2329 #679F23 #239F99
square
#5B239F #9F2329 #679F23 #239F99
split-complementary
#5B239F #9F9923 #299F23
monochromatic
#220D3B #3E186D #5B239F #782ED1 #9860DC
Accessibility & contrast
On white
9.61
#5B239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5B239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B239F
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B239F | 1.00 | 9.61 | 2.19 | 9.61 |
| #FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4A4460
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5b239f; /* rgb */ color: rgb(91, 35, 159); /* oklch */ color: oklch(41.3% 0.185 298.2);
Tailwind
colors: {
custom: {
50: '#9065bc',
500: '#5b239f',
950: '#000000',
},
}SCSS
$custom: #5b239f; $custom-light: #9065bc; $custom-dark: #000000;
JSON
{
"hex": "#5b239f",
"rgb": {
"r": 91,
"g": 35,
"b": 159
},
"hsl": {
"h": 267.097,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.4126,
"c": 0.18452,
"h": 298.2
},
"luminance": 0.05929
}Semantic roles & 50–950 ramp
primary
#5B239F
secondary
#94C15D
accent
#E7419C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81