#9766CB#9766CB
#9766CB is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.5% C 0.154 H 304.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #9766CB |
|---|---|
| RGB | rgb(151, 102, 203) |
| HSL | hsl(269, 49%, 60%) |
| HSV | hsv(269, 50%, 80%) |
| CMYK | cmyk(25.6%, 49.8%, 0%, 20.4%) |
| CIE-LAB | lab(52.28, 39.53, -45.27) |
| CIE-LCH | lch(52.28, 60.10, 311.13°) |
| OKLab | oklab(60.5% 0.0877 -0.127) |
| OKLCH | oklch(60.5% 0.154 304.6) |
| XYZ | xyz(28.2911, 20.3940, 58.9343) |
| Luminance | 0.2039 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.05
Deep Lilac
#966EBD
ΔE00 3.83
Mediumpurple
#9370DB
ΔE00 4.24
Deep Lavender
#8D5EB7
ΔE00 4.35
Lightish Purple
#A552E6
ΔE00 6.14
Lighter Purple
#A55AF4
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9766CB #9ACB66
analogous
#6668CB #9766CB #C966CB
triadic
#9766CB #CB9766 #66CB97
tetradic
#9766CB #CB6668 #9ACB66 #66CBC9
square
#9766CB #CB6668 #9ACB66 #66CBC9
split-complementary
#9766CB #CBC966 #68CB66
monochromatic
#5A2E88 #783EB6 #9766CB #B694DB #D5C1EA
Accessibility & contrast
On white
4.13
#9766CB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.08
#9766CB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9766CB
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9766CB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9766CB | 1.00 | 4.13 | 5.08 | 5.08 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#487BCF
Deuteranopia (green-blind)
#557DC8
Tritanopia (blue-blind)
#8E788F
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9766cb; /* rgb */ color: rgb(151, 102, 203); /* oklch */ color: oklch(60.5% 0.154 304.6);
Tailwind
colors: {
custom: {
50: '#b893db',
500: '#9766cb',
950: '#000000',
},
}SCSS
$custom: #9766cb; $custom-light: #b893db; $custom-dark: #000000;
JSON
{
"hex": "#9766cb",
"rgb": {
"r": 151,
"g": 102,
"b": 203
},
"hsl": {
"h": 269.109,
"s": 49.268,
"l": 59.804
},
"oklch": {
"l": 0.60497,
"c": 0.15432,
"h": 304.6
},
"luminance": 0.20394
}Semantic roles & 50–950 ramp
primary
#9766CB
secondary
#C7DAB3
accent
#D94F96
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83