#9D38D9#9D38D9
#9D38D9 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 56.1% C 0.234 H 309.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #9D38D9 |
|---|---|
| RGB | rgb(157, 56, 217) |
| HSL | hsl(278, 68%, 54%) |
| HSV | hsv(278, 74%, 85%) |
| CMYK | cmyk(27.6%, 74.2%, 0%, 14.9%) |
| CIE-LAB | lab(45.64, 66.36, -63.88) |
| CIE-LCH | lch(45.64, 92.11, 316.09°) |
| OKLab | oklab(56.12% 0.1482 -0.1812) |
| OKLCH | oklch(56.12% 0.234 309.3) |
| XYZ | xyz(27.8407, 15.0067, 67.0621) |
| Luminance | 0.1501 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.41
Vibrant Purple
#AD03DE
ΔE00 3.78
Violet (survey)
#9A0EEA
ΔE00 4.34
Blueviolet
#8A2BE2
ΔE00 4.49
Bright Violet
#AD0AFD
ΔE00 4.85
Electric Purple
#AA23FF
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D38D9 #74D938
analogous
#4C38D9 #9D38D9 #D938C4
triadic
#9D38D9 #D99D38 #38D99D
tetradic
#9D38D9 #D94C38 #74D938 #38C4D9
square
#9D38D9 #D94C38 #74D938 #38C4D9
split-complementary
#9D38D9 #C4D938 #38D94C
monochromatic
#58187E #7C22B2 #9D38D9 #B66BE3 #D09FED
Accessibility & contrast
On white
5.25
#9D38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.00
#9D38D9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9D38D9
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D38D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9D38D9 | 1.00 | 5.25 | 4.00 | 5.25 |
| #FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#945E86
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #9d38d9; /* rgb */ color: rgb(157, 56, 217); /* oklch */ color: oklch(56.1% 0.234 309.3);
Tailwind
colors: {
custom: {
50: '#bf79e6',
500: '#9d38d9',
950: '#000000',
},
}SCSS
$custom: #9d38d9; $custom-light: #bf79e6; $custom-dark: #000000;
JSON
{
"hex": "#9d38d9",
"rgb": {
"r": 157,
"g": 56,
"b": 217
},
"hsl": {
"h": 277.64,
"s": 67.932,
"l": 53.529
},
"oklch": {
"l": 0.56115,
"c": 0.23406,
"h": 309.3
},
"luminance": 0.15006
}Semantic roles & 50–950 ramp
primary
#9D38D9
secondary
#AED994
accent
#EB3D7E
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84