#9766DC#9766DC

#9766DC is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.5% C 0.175 H 300.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9766DC
RGBrgb(151, 102, 220)
HSLhsl(265, 63%, 63%)
HSVhsv(265, 54%, 86%)
CMYKcmyk(31.4%, 53.6%, 0%, 13.7%)
CIE-LABlab(53.22, 43.68, -53.43)
CIE-LCHlch(53.22, 69.01, 309.27°)
OKLaboklab(61.5% 0.0889 -0.1509)
OKLCHoklch(61.5% 0.175 300.5)
XYZxyz(30.4291, 21.2492, 70.1947)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766DC #ABDC66
analogous
#6670DC #9766DC #D266DC
triadic
#9766DC #DC9766 #66DC97
tetradic
#9766DC #DC6670 #ABDC66 #66DCD2
square
#9766DC #DC6670 #ABDC66 #66DCD2
split-complementary
#9766DC #DCD266 #70DC66
monochromatic
#5925A2 #7534D1 #9766DC #B998E7 #DBCAF3

Accessibility & contrast

On white

4.00
#9766DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#9766DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766DC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766DC#FFFFFF#000000##000000
##9766DC1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#397FE0
Deuteranopia (green-blind)
#487ED9
Tritanopia (blue-blind)
#897D97
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9766dc;
/* rgb */ color: rgb(151, 102, 220);
/* oklch */ color: oklch(61.5% 0.175 300.5);
Tailwind
colors: {
  custom: {
    50: '#b993e7',
    500: '#9766dc',
    950: '#000000',
  },
}
SCSS
$custom: #9766dc;
$custom-light: #b993e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9766dc",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 264.915,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61499,
    "c": 0.17511,
    "h": 300.5
  },
  "luminance": 0.21249
}

Semantic roles & 50–950 ramp

primary
#9766DC
secondary
#D2E4BA
accent
#CB1B82
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9766DC

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

Preview Lab → · Contrast checker → · Palette generator →

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