#9766EB#9766EB

#9766EB is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.4% C 0.193 H 297.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9766EB
RGBrgb(151, 102, 235)
HSLhsl(262, 77%, 66%)
HSVhsv(262, 57%, 92%)
CMYKcmyk(35.7%, 56.6%, 0%, 7.8%)
CIE-LABlab(54.11, 47.45, -60.43)
CIE-LCHlch(54.11, 76.84, 308.14°)
OKLaboklab(62.44% 0.0893 -0.1714)
OKLCHoklch(62.44% 0.193 297.5)
XYZxyz(32.5055, 22.0798, 81.1304)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766EB #BAEB66
analogous
#6677EB #9766EB #D966EB
triadic
#9766EB #EB9766 #66EB97
tetradic
#9766EB #EB6677 #BAEB66 #66EBD9
square
#9766EB #EB6677 #BAEB66 #66EBD9
split-complementary
#9766EB #EBD966 #77EB66
monochromatic
#5619BE #7230E4 #9766EB #BC9CF2 #E1D2F9

Accessibility & contrast

On white

3.88
#9766EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#9766EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766EB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766EB#FFFFFF#000000##000000
##9766EB1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2382EF
Deuteranopia (green-blind)
#3780E8
Tritanopia (blue-blind)
#84829F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9766eb;
/* rgb */ color: rgb(151, 102, 235);
/* oklch */ color: oklch(62.4% 0.193 297.5);
Tailwind
colors: {
  custom: {
    50: '#ba93f2',
    500: '#9766eb',
    950: '#000000',
  },
}
SCSS
$custom: #9766eb;
$custom-light: #ba93f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9766eb",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 262.105,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62442,
    "c": 0.19328,
    "h": 297.5
  },
  "luminance": 0.2208
}

Semantic roles & 50–950 ramp

primary
#9766EB
secondary
#DCECC1
accent
#D90C8E
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9766EB

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

Preview Lab → · Contrast checker → · Palette generator →

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