#9766CF#9766CF
#9766CF is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.7% C 0.159 H 303.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #9766CF |
|---|---|
| RGB | rgb(151, 102, 207) |
| HSL | hsl(268, 52%, 61%) |
| HSV | hsv(268, 51%, 81%) |
| CMYK | cmyk(27.1%, 50.7%, 0%, 18.8%) |
| CIE-LAB | lab(52.49, 40.49, -47.21) |
| CIE-LCH | lch(52.49, 62.20, 310.62°) |
| OKLab | oklab(60.73% 0.088 -0.1327) |
| OKLCH | oklch(60.73% 0.159 303.6) |
| XYZ | xyz(28.7739, 20.5871, 61.4772) |
| Luminance | 0.2059 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.59
Mediumpurple
#9370DB
ΔE00 3.77
Deep Lilac
#966EBD
ΔE00 4.38
Deep Lavender
#8D5EB7
ΔE00 4.87
Lightish Purple
#A552E6
ΔE00 5.76
Lighter Purple
#A55AF4
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9766CF #9ECF66
analogous
#6669CF #9766CF #CB66CF
triadic
#9766CF #CF9766 #66CF97
tetradic
#9766CF #CF6669 #9ECF66 #66CFCB
square
#9766CF #CF6669 #9ECF66 #66CFCB
split-complementary
#9766CF #CFCB66 #69CF66
monochromatic
#5A2D8E #783BBD #9766CF #B795DE #D6C3EC
Accessibility & contrast
On white
4.10
#9766CF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#9766CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9766CF
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9766CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9766CF | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#457CD3
Deuteranopia (green-blind)
#537DCC
Tritanopia (blue-blind)
#8D7991
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9766cf; /* rgb */ color: rgb(151, 102, 207); /* oklch */ color: oklch(60.7% 0.159 303.6);
Tailwind
colors: {
custom: {
50: '#b893de',
500: '#9766cf',
950: '#000000',
},
}SCSS
$custom: #9766cf; $custom-light: #b893de; $custom-dark: #000000;
JSON
{
"hex": "#9766cf",
"rgb": {
"r": 151,
"g": 102,
"b": 207
},
"hsl": {
"h": 268,
"s": 52.239,
"l": 60.588
},
"oklch": {
"l": 0.60726,
"c": 0.15923,
"h": 303.6
},
"luminance": 0.20587
}Semantic roles & 50–950 ramp
primary
#9766CF
secondary
#CADCB4
accent
#C02678
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83