#5D239F#5D239F
#5D239F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.185 H 299.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5D239F |
|---|---|
| RGB | rgb(93, 35, 159) |
| HSL | hsl(268, 64%, 38%) |
| HSV | hsv(268, 78%, 62%) |
| CMYK | cmyk(41.5%, 78%, 0%, 37.6%) |
| CIE-LAB | lab(29.49, 50.28, -56.39) |
| CIE-LCH | lch(29.49, 75.55, 311.72°) |
| OKLab | oklab(41.5% 0.0903 -0.1613) |
| OKLCH | oklch(41.5% 0.185 299.2) |
| XYZ | xyz(11.3717, 6.0323, 33.3594) |
| Luminance | 0.0603 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.97
Indigo Blue
#3A18B1
ΔE00 6.01
Violet Blue
#510AC9
ΔE00 6.28
Purple (survey)
#7E1E9C
ΔE00 6.39
Purple Blue
#5D21D0
ΔE00 6.73
Indigo
#4B0082
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D239F #659F23
analogous
#23279F #5D239F #9B239F
triadic
#5D239F #9F5D23 #239F5D
tetradic
#5D239F #9F2327 #659F23 #239F9B
square
#5D239F #9F2327 #659F23 #239F9B
split-complementary
#5D239F #9F9B23 #279F23
monochromatic
#220D3B #40186D #5D239F #7A2ED1 #9A60DC
Accessibility & contrast
On white
9.52
#5D239F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5D239F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D239F
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D239F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D239F | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4D4460
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5d239f; /* rgb */ color: rgb(93, 35, 159); /* oklch */ color: oklch(41.5% 0.185 299.2);
Tailwind
colors: {
custom: {
50: '#9165bc',
500: '#5d239f',
950: '#000000',
},
}SCSS
$custom: #5d239f; $custom-light: #9165bc; $custom-dark: #000000;
JSON
{
"hex": "#5d239f",
"rgb": {
"r": 93,
"g": 35,
"b": 159
},
"hsl": {
"h": 268.065,
"s": 63.918,
"l": 38.039
},
"oklch": {
"l": 0.415,
"c": 0.1848,
"h": 299.2
},
"luminance": 0.06032
}Semantic roles & 50–950 ramp
primary
#5D239F
secondary
#92C15D
accent
#E74199
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81