#9751CB#9751CB
#9751CB is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.3% C 0.187 H 308.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #9751CB |
|---|---|
| RGB | rgb(151, 81, 203) |
| HSL | hsl(274, 54%, 56%) |
| HSV | hsv(274, 60%, 80%) |
| CMYK | cmyk(25.6%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(47.98, 50.81, -52.13) |
| CIE-LCH | lch(47.98, 72.79, 314.26°) |
| OKLab | oklab(57.33% 0.115 -0.147) |
| OKLCH | oklch(57.33% 0.187 308) |
| XYZ | xyz(26.4822, 16.7763, 58.3314) |
| Luminance | 0.1678 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 4.46
Lightish Purple
#A552E6
ΔE00 4.58
Deep Lavender
#8D5EB7
ΔE00 4.87
Purpley
#8756E4
ΔE00 5.44
Darkorchid
#9932CC
ΔE00 5.86
Purply
#983FB2
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9751CB #85CB51
analogous
#5A51CB #9751CB #CB51C2
triadic
#9751CB #CB9751 #51CB97
tetradic
#9751CB #CB5A51 #85CB51 #51C2CB
square
#9751CB #CB5A51 #85CB51 #51C2CB
split-complementary
#9751CB #C2CB51 #51CB5A
monochromatic
#57257C #7833AC #9751CB #B380D9 #CFAFE7
Accessibility & contrast
On white
4.82
#9751CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.36
#9751CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9751CB
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9751CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9751CB | 1.00 | 4.82 | 4.36 | 4.82 |
| #FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C6FCF
Deuteranopia (green-blind)
#3E73C8
Tritanopia (blue-blind)
#8F6986
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #9751cb; /* rgb */ color: rgb(151, 81, 203); /* oklch */ color: oklch(57.3% 0.187 308.0);
Tailwind
colors: {
custom: {
50: '#b985db',
500: '#9751cb',
950: '#000000',
},
}SCSS
$custom: #9751cb; $custom-light: #b985db; $custom-dark: #000000;
JSON
{
"hex": "#9751cb",
"rgb": {
"r": 151,
"g": 81,
"b": 203
},
"hsl": {
"h": 274.426,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.5733,
"c": 0.18665,
"h": 308
},
"luminance": 0.16776
}Semantic roles & 50–950 ramp
primary
#9751CB
secondary
#B8D5A3
accent
#DD4A89
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83