#9C38D9#9C38D9
#9C38D9 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 56.0% C 0.234 H 308.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #9C38D9 |
|---|---|
| RGB | rgb(156, 56, 217) |
| HSL | hsl(277, 68%, 54%) |
| HSV | hsv(277, 74%, 85%) |
| CMYK | cmyk(28.1%, 74.2%, 0%, 14.9%) |
| CIE-LAB | lab(45.51, 66.17, -64.11) |
| CIE-LCH | lch(45.51, 92.14, 315.91°) |
| OKLab | oklab(55.99% 0.1469 -0.1819) |
| OKLCH | oklch(55.99% 0.234 308.9) |
| XYZ | xyz(27.6463, 14.9065, 67.0530) |
| Luminance | 0.1491 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.36
Vibrant Purple
#AD03DE
ΔE00 3.83
Violet (survey)
#9A0EEA
ΔE00 4.25
Blueviolet
#8A2BE2
ΔE00 4.32
Bright Violet
#AD0AFD
ΔE00 4.89
Electric Purple
#AA23FF
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C38D9 #75D938
analogous
#4B38D9 #9C38D9 #D938C5
triadic
#9C38D9 #D99C38 #38D99C
tetradic
#9C38D9 #D94B38 #75D938 #38C5D9
square
#9C38D9 #D94B38 #75D938 #38C5D9
split-complementary
#9C38D9 #C5D938 #38D94B
monochromatic
#58187E #7B22B2 #9C38D9 #B66BE3 #CF9FED
Accessibility & contrast
On white
5.27
#9C38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#9C38D9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9C38D9
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C38D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9C38D9 | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068DE
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#935E86
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #9c38d9; /* rgb */ color: rgb(156, 56, 217); /* oklch */ color: oklch(56.0% 0.234 308.9);
Tailwind
colors: {
custom: {
50: '#be78e6',
500: '#9c38d9',
950: '#000000',
},
}SCSS
$custom: #9c38d9; $custom-light: #be78e6; $custom-dark: #000000;
JSON
{
"hex": "#9c38d9",
"rgb": {
"r": 156,
"g": 56,
"b": 217
},
"hsl": {
"h": 277.267,
"s": 67.932,
"l": 53.529
},
"oklch": {
"l": 0.5599,
"c": 0.23379,
"h": 308.9
},
"luminance": 0.14906
}Semantic roles & 50–950 ramp
primary
#9C38D9
secondary
#AED994
accent
#EB3D7F
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84