#9B38E2#9B38E2
#9B38E2 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.5% C 0.242 H 306.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #9B38E2 |
|---|---|
| RGB | rgb(155, 56, 226) |
| HSL | hsl(275, 75%, 55%) |
| HSV | hsv(275, 75%, 89%) |
| CMYK | cmyk(31.4%, 75.2%, 0%, 11.4%) |
| CIE-LAB | lab(46.03, 67.92, -68.41) |
| CIE-LCH | lch(46.03, 96.39, 314.79°) |
| OKLab | oklab(56.53% 0.1438 -0.1945) |
| OKLCH | oklch(56.53% 0.242 306.5) |
| XYZ | xyz(28.6562, 15.2882, 73.3780) |
| Luminance | 0.1529 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.50
Electric Purple
#AA23FF
ΔE00 3.95
Violet (survey)
#9A0EEA
ΔE00 3.97
Blueviolet
#8A2BE2
ΔE00 4.02
Bright Violet
#AD0AFD
ΔE00 4.11
Vibrant Purple
#AD03DE
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B38E2 #7FE238
analogous
#4638E2 #9B38E2 #E238D4
triadic
#9B38E2 #E29B38 #38E29B
tetradic
#9B38E2 #E24638 #7FE238 #38D4E2
square
#9B38E2 #E24638 #7FE238 #38D4E2
split-complementary
#9B38E2 #D4E238 #38E246
monochromatic
#5A148B #7C1CC1 #9B38E2 #B66DEA #D1A3F2
Accessibility & contrast
On white
5.18
#9B38E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#9B38E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9B38E2
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B38E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9B38E2 | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#8E628B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9b38e2; /* rgb */ color: rgb(155, 56, 226); /* oklch */ color: oklch(56.5% 0.242 306.5);
Tailwind
colors: {
custom: {
50: '#be79ec',
500: '#9b38e2',
950: '#000000',
},
}SCSS
$custom: #9b38e2; $custom-light: #be79ec; $custom-dark: #000000;
JSON
{
"hex": "#9b38e2",
"rgb": {
"r": 155,
"g": 56,
"b": 226
},
"hsl": {
"h": 274.941,
"s": 74.561,
"l": 55.294
},
"oklch": {
"l": 0.56534,
"c": 0.24192,
"h": 306.5
},
"luminance": 0.15288
}Semantic roles & 50–950 ramp
primary
#9B38E2
secondary
#B5DE97
accent
#F13785
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84