#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
RGBrgb(151, 102, 207)
HSLhsl(268, 52%, 61%)
HSVhsv(268, 51%, 81%)
CMYKcmyk(27.1%, 50.7%, 0%, 18.8%)
CIE-LABlab(52.49, 40.49, -47.21)
CIE-LCHlch(52.49, 62.20, 310.62°)
OKLaboklab(60.73% 0.088 -0.1327)
OKLCHoklch(60.73% 0.159 303.6)
XYZxyz(28.7739, 20.5871, 61.4772)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##9766CF1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.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

Preview Lab

Preview with #9766CF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9766CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva