#9152CC#9152CC
#9152CC is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.9% C 0.185 H 305.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #9152CC |
|---|---|
| RGB | rgb(145, 82, 204) |
| HSL | hsl(271, 54%, 56%) |
| HSV | hsv(271, 60%, 80%) |
| CMYK | cmyk(28.9%, 59.8%, 0%, 20%) |
| CIE-LAB | lab(47.51, 49.10, -53.49) |
| CIE-LCH | lch(47.51, 72.61, 312.55°) |
| OKLab | oklab(56.85% 0.106 -0.1512) |
| OKLCH | oklch(56.85% 0.185 305) |
| XYZ | xyz(25.5911, 16.4141, 58.9351) |
| Luminance | 0.1641 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.54
Deep Lavender
#8D5EB7
ΔE00 4.85
Lightish Purple
#A552E6
ΔE00 5.01
Amethyst
#9B5FC0
ΔE00 5.06
Darkorchid
#9932CC
ΔE00 6.05
Purply
#983FB2
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9152CC #8DCC52
analogous
#5452CC #9152CC #CC52CA
triadic
#9152CC #CC9152 #52CC91
tetradic
#9152CC #CC5452 #8DCC52 #52CACC
square
#9152CC #CC5452 #8DCC52 #52CACC
split-complementary
#9152CC #CACC52 #52CC54
monochromatic
#53257E #7233AE #9152CC #AF81DA #CDB1E8
Accessibility & contrast
On white
4.90
#9152CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#9152CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9152CC
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9152CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9152CC | 1.00 | 4.90 | 4.28 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#166FD0
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#876A87
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9152cc; /* rgb */ color: rgb(145, 82, 204); /* oklch */ color: oklch(56.9% 0.185 305.0);
Tailwind
colors: {
custom: {
50: '#b586dc',
500: '#9152cc',
950: '#000000',
},
}SCSS
$custom: #9152cc; $custom-light: #b586dc; $custom-dark: #000000;
JSON
{
"hex": "#9152cc",
"rgb": {
"r": 145,
"g": 82,
"b": 204
},
"hsl": {
"h": 270.984,
"s": 54.464,
"l": 56.078
},
"oklch": {
"l": 0.56854,
"c": 0.18466,
"h": 305
},
"luminance": 0.16414
}Semantic roles & 50–950 ramp
primary
#9152CC
secondary
#BCD6A4
accent
#DE4A91
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83