#9766EC#9766EC

#9766EC is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.5% C 0.194 H 297.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9766EC
RGBrgb(151, 102, 236)
HSLhsl(262, 78%, 66%)
HSVhsv(262, 57%, 93%)
CMYKcmyk(36%, 56.8%, 0%, 7.5%)
CIE-LABlab(54.17, 47.71, -60.90)
CIE-LCHlch(54.17, 77.36, 308.08°)
OKLaboklab(62.51% 0.0893 -0.1728)
OKLCHoklch(62.51% 0.194 297.3)
XYZxyz(32.6504, 22.1377, 81.8934)
Luminance0.2214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766EC #BBEC66
analogous
#6678EC #9766EC #DA66EC
triadic
#9766EC #EC9766 #66EC97
tetradic
#9766EC #EC6678 #BBEC66 #66ECDA
square
#9766EC #EC6678 #BBEC66 #66ECDA
split-complementary
#9766EC #ECDA66 #78EC66
monochromatic
#5518C0 #7230E5 #9766EC #BC9CF3 #E1D3FA

Accessibility & contrast

On white

3.87
#9766EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#9766EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766EC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766EC#FFFFFF#000000##000000
##9766EC1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2182F0
Deuteranopia (green-blind)
#3680E9
Tritanopia (blue-blind)
#83829F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9766ec;
/* rgb */ color: rgb(151, 102, 236);
/* oklch */ color: oklch(62.5% 0.194 297.3);
Tailwind
colors: {
  custom: {
    50: '#ba93f3',
    500: '#9766ec',
    950: '#000000',
  },
}
SCSS
$custom: #9766ec;
$custom-light: #ba93f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9766ec",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 261.94,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.62506,
    "c": 0.19449,
    "h": 297.3
  },
  "luminance": 0.22138
}

Semantic roles & 50–950 ramp

primary
#9766EC
secondary
#DDEDC1
accent
#DA0B8F
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9766EC

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

Preview Lab → · Contrast checker → · Palette generator →

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