#9766E2#9766E2

#9766E2 is a mid, vivid violet. Relative luminance 0.216; OKLCH L 61.9% C 0.182 H 299.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9766E2
RGBrgb(151, 102, 226)
HSLhsl(264, 68%, 64%)
HSVhsv(264, 55%, 89%)
CMYKcmyk(33.2%, 54.9%, 0%, 11.4%)
CIE-LABlab(53.57, 45.18, -56.25)
CIE-LCHlch(53.57, 72.15, 308.77°)
OKLaboklab(61.87% 0.0891 -0.1592)
OKLCHoklch(61.87% 0.182 299.3)
XYZxyz(31.2380, 21.5728, 74.4550)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766E2 #B1E266
analogous
#6673E2 #9766E2 #D566E2
triadic
#9766E2 #E29766 #66E297
tetradic
#9766E2 #E26673 #B1E266 #66E2D5
square
#9766E2 #E26673 #B1E266 #66E2D5
split-complementary
#9766E2 #E2D566 #73E266
monochromatic
#5821AD #7433D8 #9766E2 #BA99EC #DDCDF6

Accessibility & contrast

On white

3.95
#9766E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#9766E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766E2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766E2#FFFFFF#000000##000000
##9766E21.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3180E6
Deuteranopia (green-blind)
#427FDF
Tritanopia (blue-blind)
#877F9A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9766e2;
/* rgb */ color: rgb(151, 102, 226);
/* oklch */ color: oklch(61.9% 0.182 299.3);
Tailwind
colors: {
  custom: {
    50: '#b993ec',
    500: '#9766e2',
    950: '#000000',
  },
}
SCSS
$custom: #9766e2;
$custom-light: #b993ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9766e2",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 226
  },
  "hsl": {
    "h": 263.71,
    "s": 68.132,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6187,
    "c": 0.18241,
    "h": 299.3
  },
  "luminance": 0.21573
}

Semantic roles & 50–950 ramp

primary
#9766E2
secondary
#D6E7BC
accent
#D01586
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9766E2

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

Preview Lab → · Contrast checker → · Palette generator →

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