#9766C8#9766C8
#9766C8 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.3% C 0.151 H 305.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #9766C8 |
|---|---|
| RGB | rgb(151, 102, 200) |
| HSL | hsl(270, 47%, 59%) |
| HSV | hsv(270, 49%, 78%) |
| CMYK | cmyk(24.5%, 49%, 0%, 21.6%) |
| CIE-LAB | lab(52.12, 38.82, -43.80) |
| CIE-LCH | lch(52.12, 58.53, 311.55°) |
| OKLab | oklab(60.33% 0.0873 -0.1227) |
| OKLCH | oklch(60.33% 0.151 305.4) |
| XYZ | xyz(27.9370, 20.2524, 57.0697) |
| Luminance | 0.2025 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.68
Deep Lilac
#966EBD
ΔE00 3.44
Deep Lavender
#8D5EB7
ΔE00 4.00
Mediumpurple
#9370DB
ΔE00 4.64
Lightish Purple
#A552E6
ΔE00 6.48
Soft Purple
#A66FB5
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9766C8 #97C866
analogous
#6666C8 #9766C8 #C866C8
triadic
#9766C8 #C89766 #66C897
tetradic
#9766C8 #C86666 #97C866 #66C8C8
square
#9766C8 #C86666 #97C866 #66C8C8
split-complementary
#9766C8 #C8C866 #66C866
monochromatic
#5A2F84 #7840B1 #9766C8 #B693D8 #D4C0E8
Accessibility & contrast
On white
4.16
#9766C8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#9766C8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9766C8
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9766C8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9766C8 | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A7BCB
Deuteranopia (green-blind)
#577DC6
Tritanopia (blue-blind)
#8F778E
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #9766c8; /* rgb */ color: rgb(151, 102, 200); /* oklch */ color: oklch(60.3% 0.151 305.4);
Tailwind
colors: {
custom: {
50: '#b893d9',
500: '#9766c8',
950: '#000000',
},
}SCSS
$custom: #9766c8; $custom-light: #b893d9; $custom-dark: #000000;
JSON
{
"hex": "#9766c8",
"rgb": {
"r": 151,
"g": 102,
"b": 200
},
"hsl": {
"h": 270,
"s": 47.115,
"l": 59.216
},
"oklch": {
"l": 0.60327,
"c": 0.15064,
"h": 305.4
},
"luminance": 0.20252
}Semantic roles & 50–950 ramp
primary
#9766C8
secondary
#C5D8B2
accent
#D75194
background
#FBF9FD
surface
#F6F1FA
border
#D0CBD3
text
#120D15
muted
#817E83