#9535B2#9535B2
#9535B2 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.1% C 0.199 H 317.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #9535B2 |
|---|---|
| RGB | rgb(149, 53, 178) |
| HSL | hsl(286, 54%, 45%) |
| HSV | hsv(286, 70%, 70%) |
| CMYK | cmyk(16.3%, 70.2%, 0%, 30.2%) |
| CIE-LAB | lab(41.46, 57.95, -48.03) |
| CIE-LCH | lch(41.46, 75.27, 320.35°) |
| OKLab | oklab(52.07% 0.146 -0.1349) |
| OKLCH | oklch(52.07% 0.199 317.3) |
| XYZ | xyz(21.7022, 12.1510, 43.3131) |
| Luminance | 0.1215 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.12
Darkorchid
#9932CC
ΔE00 3.96
Barney
#AC1DB8
ΔE00 4.05
Medium Purple
#9E43A2
ΔE00 5.30
Darkviolet
#9400D3
ΔE00 6.34
Ugly Purple
#A442A0
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9535B2 #52B235
analogous
#5635B2 #9535B2 #B23590
triadic
#9535B2 #B29535 #35B295
tetradic
#9535B2 #B25635 #52B235 #3590B2
square
#9535B2 #B25635 #52B235 #3590B2
split-complementary
#9535B2 #90B235 #35B256
monochromatic
#461954 #6E2783 #9535B2 #B257CD #C786DB
Accessibility & contrast
On white
6.12
#9535B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#9535B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9535B2
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9535B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9535B2 | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3865AF
Tritanopia (blue-blind)
#944E70
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #9535b2; /* rgb */ color: rgb(149, 53, 178); /* oklch */ color: oklch(52.1% 0.199 317.3);
Tailwind
colors: {
custom: {
50: '#b875ca',
500: '#9535b2',
950: '#000000',
},
}SCSS
$custom: #9535b2; $custom-light: #b875ca; $custom-dark: #000000;
JSON
{
"hex": "#9535b2",
"rgb": {
"r": 149,
"g": 53,
"b": 178
},
"hsl": {
"h": 286.08,
"s": 54.113,
"l": 45.294
},
"oklch": {
"l": 0.52072,
"c": 0.19877,
"h": 317.3
},
"luminance": 0.1215
}Semantic roles & 50–950 ramp
primary
#9535B2
secondary
#8EC57E
accent
#DD4A6C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120913
muted
#817B82