#9E38D9#9E38D9
#9E38D9 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.2% C 0.234 H 309.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #9E38D9 |
|---|---|
| RGB | rgb(158, 56, 217) |
| HSL | hsl(278, 68%, 54%) |
| HSV | hsv(278, 74%, 85%) |
| CMYK | cmyk(27.2%, 74.2%, 0%, 14.9%) |
| CIE-LAB | lab(45.78, 66.54, -63.65) |
| CIE-LCH | lch(45.78, 92.08, 316.27°) |
| OKLab | oklab(56.24% 0.1495 -0.1805) |
| OKLCH | oklch(56.24% 0.234 309.6) |
| XYZ | xyz(28.0366, 15.1078, 67.0713) |
| Luminance | 0.1511 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.49
Vibrant Purple
#AD03DE
ΔE00 3.73
Violet (survey)
#9A0EEA
ΔE00 4.44
Blueviolet
#8A2BE2
ΔE00 4.66
Bright Violet
#AD0AFD
ΔE00 4.82
Electric Purple
#AA23FF
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E38D9 #73D938
analogous
#4D38D9 #9E38D9 #D938C4
triadic
#9E38D9 #D99E38 #38D99E
tetradic
#9E38D9 #D94D38 #73D938 #38C4D9
square
#9E38D9 #D94D38 #73D938 #38C4D9
split-complementary
#9E38D9 #C4D938 #38D94D
monochromatic
#59187E #7D22B2 #9E38D9 #B76BE3 #D09FED
Accessibility & contrast
On white
5.22
#9E38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#9E38D9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9E38D9
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E38D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9E38D9 | 1.00 | 5.22 | 4.02 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#056ED6
Tritanopia (blue-blind)
#955E86
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #9e38d9; /* rgb */ color: rgb(158, 56, 217); /* oklch */ color: oklch(56.2% 0.234 309.6);
Tailwind
colors: {
custom: {
50: '#c079e6',
500: '#9e38d9',
950: '#000000',
},
}SCSS
$custom: #9e38d9; $custom-light: #c079e6; $custom-dark: #000000;
JSON
{
"hex": "#9e38d9",
"rgb": {
"r": 158,
"g": 56,
"b": 217
},
"hsl": {
"h": 278.012,
"s": 67.932,
"l": 53.529
},
"oklch": {
"l": 0.56241,
"c": 0.23434,
"h": 309.6
},
"luminance": 0.15107
}Semantic roles & 50–950 ramp
primary
#9E38D9
secondary
#ADD994
accent
#EB3D7D
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84