#9766CD#9766CD

#9766CD is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.6% C 0.157 H 304.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9766CD
RGBrgb(151, 102, 205)
HSLhsl(269, 51%, 60%)
HSVhsv(269, 50%, 80%)
CMYKcmyk(26.3%, 50.2%, 0%, 19.6%)
CIE-LABlab(52.39, 40.01, -46.24)
CIE-LCHlch(52.39, 61.15, 310.87°)
OKLaboklab(60.61% 0.0878 -0.1298)
OKLCHoklch(60.61% 0.157 304.1)
XYZxyz(28.5309, 20.4899, 60.1977)
Luminance0.2049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766CD #9CCD66
analogous
#6668CD #9766CD #CB66CD
triadic
#9766CD #CD9766 #66CD97
tetradic
#9766CD #CD6668 #9CCD66 #66CDCB
square
#9766CD #CD6668 #9CCD66 #66CDCB
split-complementary
#9766CD #CDCB66 #68CD66
monochromatic
#5A2D8B #783DB9 #9766CD #B694DC #D6C2EB

Accessibility & contrast

On white

4.12
#9766CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9766CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766CD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766CD#FFFFFF#000000##000000
##9766CD1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#467CD1
Deuteranopia (green-blind)
#547DCA
Tritanopia (blue-blind)
#8E7990
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9766cd;
/* rgb */ color: rgb(151, 102, 205);
/* oklch */ color: oklch(60.6% 0.157 304.1);
Tailwind
colors: {
  custom: {
    50: '#b893dd',
    500: '#9766cd',
    950: '#000000',
  },
}
SCSS
$custom: #9766cd;
$custom-light: #b893dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9766cd",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 268.544,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60611,
    "c": 0.15677,
    "h": 304.1
  },
  "luminance": 0.2049
}

Semantic roles & 50–950 ramp

primary
#9766CD
secondary
#C8DBB4
accent
#BE2776
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9766CD

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

Preview Lab → · Contrast checker → · Palette generator →

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