#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
RGBrgb(151, 102, 200)
HSLhsl(270, 47%, 59%)
HSVhsv(270, 49%, 78%)
CMYKcmyk(24.5%, 49%, 0%, 21.6%)
CIE-LABlab(52.12, 38.82, -43.80)
CIE-LCHlch(52.12, 58.53, 311.55°)
OKLaboklab(60.33% 0.0873 -0.1227)
OKLCHoklch(60.33% 0.151 305.4)
XYZxyz(27.9370, 20.2524, 57.0697)
Luminance0.2025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##9766C81.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.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

Preview Lab

Preview with #9766C8

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

Preview Lab → · Contrast checker → · Palette generator →

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