#9766CE#9766CE

#9766CE is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.7% C 0.158 H 303.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9766CE
RGBrgb(151, 102, 206)
HSLhsl(268, 51%, 60%)
HSVhsv(268, 50%, 81%)
CMYKcmyk(26.7%, 50.5%, 0%, 19.2%)
CIE-LABlab(52.44, 40.25, -46.73)
CIE-LCHlch(52.44, 61.67, 310.74°)
OKLaboklab(60.67% 0.0879 -0.1313)
OKLCHoklch(60.67% 0.158 303.8)
XYZxyz(28.6520, 20.5384, 60.8354)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766CE #9DCE66
analogous
#6669CE #9766CE #CB66CE
triadic
#9766CE #CE9766 #66CE97
tetradic
#9766CE #CE6669 #9DCE66 #66CECB
square
#9766CE #CE6669 #9DCE66 #66CECB
split-complementary
#9766CE #CECB66 #69CE66
monochromatic
#5A2D8D #783CBB #9766CE #B794DD #D6C3EC

Accessibility & contrast

On white

4.11
#9766CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9766CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766CE
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766CE#FFFFFF#000000##000000
##9766CE1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#467CD2
Deuteranopia (green-blind)
#537DCB
Tritanopia (blue-blind)
#8D7990
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9766ce;
/* rgb */ color: rgb(151, 102, 206);
/* oklch */ color: oklch(60.7% 0.158 303.8);
Tailwind
colors: {
  custom: {
    50: '#b893dd',
    500: '#9766ce',
    950: '#000000',
  },
}
SCSS
$custom: #9766ce;
$custom-light: #b893dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9766ce",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 206
  },
  "hsl": {
    "h": 268.269,
    "s": 51.485,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60669,
    "c": 0.158,
    "h": 303.8
  },
  "luminance": 0.20538
}

Semantic roles & 50–950 ramp

primary
#9766CE
secondary
#C9DCB4
accent
#BF2777
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9766CE

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

Preview Lab → · Contrast checker → · Palette generator →

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