#9152CB#9152CB
#9152CB is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.8% C 0.184 H 305.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #9152CB |
|---|---|
| RGB | rgb(145, 82, 203) |
| HSL | hsl(271, 54%, 56%) |
| HSV | hsv(271, 60%, 80%) |
| CMYK | cmyk(28.6%, 59.6%, 0%, 20.4%) |
| CIE-LAB | lab(47.45, 48.86, -53.01) |
| CIE-LCH | lch(47.45, 72.10, 312.67°) |
| OKLab | oklab(56.79% 0.1061 -0.1498) |
| OKLCH | oklch(56.79% 0.184 305.3) |
| XYZ | xyz(25.4715, 16.3663, 58.3055) |
| Luminance | 0.1637 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.69
Deep Lavender
#8D5EB7
ΔE00 4.74
Amethyst
#9B5FC0
ΔE00 4.98
Lightish Purple
#A552E6
ΔE00 5.11
Darkorchid
#9932CC
ΔE00 6.03
Purply
#983FB2
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9152CB #8CCB52
analogous
#5452CB #9152CB #CB52C8
triadic
#9152CB #CB9152 #52CB91
tetradic
#9152CB #CB5452 #8CCB52 #52C8CB
square
#9152CB #CB5452 #8CCB52 #52C8CB
split-complementary
#9152CB #C8CB52 #52CB54
monochromatic
#53267D #7234AC #9152CB #AF81D9 #CDB0E7
Accessibility & contrast
On white
4.91
#9152CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#9152CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9152CB
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9152CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9152CB | 1.00 | 4.91 | 4.27 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#196FCF
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#876A87
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9152cb; /* rgb */ color: rgb(145, 82, 203); /* oklch */ color: oklch(56.8% 0.184 305.3);
Tailwind
colors: {
custom: {
50: '#b585db',
500: '#9152cb',
950: '#000000',
},
}SCSS
$custom: #9152cb; $custom-light: #b585db; $custom-dark: #000000;
JSON
{
"hex": "#9152cb",
"rgb": {
"r": 145,
"g": 82,
"b": 203
},
"hsl": {
"h": 271.24,
"s": 53.778,
"l": 55.882
},
"oklch": {
"l": 0.56789,
"c": 0.18352,
"h": 305.3
},
"luminance": 0.16366
}Semantic roles & 50–950 ramp
primary
#9152CB
secondary
#BBD5A3
accent
#DD4B91
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83