#9138B2#9138B2
#9138B2 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.9% C 0.193 H 315.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #9138B2 |
|---|---|
| RGB | rgb(145, 56, 178) |
| HSL | hsl(284, 52%, 46%) |
| HSV | hsv(284, 69%, 70%) |
| CMYK | cmyk(18.5%, 68.5%, 0%, 30.2%) |
| CIE-LAB | lab(41.32, 55.82, -48.28) |
| CIE-LCH | lch(41.32, 73.81, 319.14°) |
| OKLab | oklab(51.85% 0.1378 -0.1358) |
| OKLCH | oklch(51.85% 0.193 315.4) |
| XYZ | xyz(21.1258, 12.0632, 43.3264) |
| Luminance | 0.1206 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.24
Darkorchid
#9932CC
ΔE00 3.94
Barney
#AC1DB8
ΔE00 4.84
Medium Purple
#9E43A2
ΔE00 5.62
Darkviolet
#9400D3
ΔE00 6.38
Purple (survey)
#7E1E9C
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9138B2 #59B238
analogous
#5438B2 #9138B2 #B23896
triadic
#9138B2 #B29138 #38B291
tetradic
#9138B2 #B25438 #59B238 #3896B2
square
#9138B2 #B25438 #59B238 #3896B2
split-complementary
#9138B2 #96B238 #38B254
monochromatic
#451B55 #6B2983 #9138B2 #AD5CCC #C58ADA
Accessibility & contrast
On white
6.15
#9138B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#9138B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9138B2
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9138B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9138B2 | 1.00 | 6.15 | 3.41 | 6.15 |
| #FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#8F5071
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #9138b2; /* rgb */ color: rgb(145, 56, 178); /* oklch */ color: oklch(51.9% 0.193 315.4);
Tailwind
colors: {
custom: {
50: '#b576ca',
500: '#9138b2',
950: '#000000',
},
}SCSS
$custom: #9138b2; $custom-light: #b576ca; $custom-dark: #000000;
JSON
{
"hex": "#9138b2",
"rgb": {
"r": 145,
"g": 56,
"b": 178
},
"hsl": {
"h": 283.77,
"s": 52.137,
"l": 45.882
},
"oklch": {
"l": 0.51853,
"c": 0.19344,
"h": 315.4
},
"luminance": 0.12062
}Semantic roles & 50–950 ramp
primary
#9138B2
secondary
#93C581
accent
#DC4C73
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120913
muted
#817B82