#9252CC#9252CC
#9252CC is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.0% C 0.185 H 305.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #9252CC |
|---|---|
| RGB | rgb(146, 82, 204) |
| HSL | hsl(271, 54%, 56%) |
| HSV | hsv(271, 60%, 80%) |
| CMYK | cmyk(28.4%, 59.8%, 0%, 20%) |
| CIE-LAB | lab(47.63, 49.34, -53.29) |
| CIE-LCH | lch(47.63, 72.62, 312.79°) |
| OKLab | oklab(56.97% 0.1073 -0.1506) |
| OKLCH | oklch(56.97% 0.185 305.5) |
| XYZ | xyz(25.7681, 16.5054, 58.9434) |
| Luminance | 0.1651 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.65
Deep Lavender
#8D5EB7
ΔE00 4.83
Lightish Purple
#A552E6
ΔE00 4.89
Amethyst
#9B5FC0
ΔE00 4.93
Darkorchid
#9932CC
ΔE00 6.04
Purply
#983FB2
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9252CC #8CCC52
analogous
#5552CC #9252CC #CC52C9
triadic
#9252CC #CC9252 #52CC92
tetradic
#9252CC #CC5552 #8CCC52 #52C9CC
square
#9252CC #CC5552 #8CCC52 #52C9CC
split-complementary
#9252CC #C9CC52 #52CC55
monochromatic
#54257E #7333AE #9252CC #B081DA #CEB1E8
Accessibility & contrast
On white
4.88
#9252CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#9252CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9252CC
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9252CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9252CC | 1.00 | 4.88 | 4.30 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#186FD0
Deuteranopia (green-blind)
#3971C9
Tritanopia (blue-blind)
#886A87
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9252cc; /* rgb */ color: rgb(146, 82, 204); /* oklch */ color: oklch(57.0% 0.185 305.5);
Tailwind
colors: {
custom: {
50: '#b686dc',
500: '#9252cc',
950: '#000000',
},
}SCSS
$custom: #9252cc; $custom-light: #b686dc; $custom-dark: #000000;
JSON
{
"hex": "#9252cc",
"rgb": {
"r": 146,
"g": 82,
"b": 204
},
"hsl": {
"h": 271.475,
"s": 54.464,
"l": 56.078
},
"oklch": {
"l": 0.56966,
"c": 0.18492,
"h": 305.5
},
"luminance": 0.16505
}Semantic roles & 50–950 ramp
primary
#9252CC
secondary
#BCD6A4
accent
#DE4A90
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83