#9766E4#9766E4

#9766E4 is a mid, vivid violet. Relative luminance 0.217; OKLCH L 62.0% C 0.185 H 298.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9766E4
RGBrgb(151, 102, 228)
HSLhsl(263, 70%, 65%)
HSVhsv(263, 55%, 89%)
CMYKcmyk(33.8%, 55.3%, 0%, 10.6%)
CIE-LABlab(53.69, 45.68, -57.19)
CIE-LCHlch(53.69, 73.19, 308.62°)
OKLaboklab(62% 0.0892 -0.1619)
OKLCHoklch(62% 0.185 298.8)
XYZxyz(31.5140, 21.6832, 75.9087)
Luminance0.2168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766E4 #B3E466
analogous
#6674E4 #9766E4 #D666E4
triadic
#9766E4 #E49766 #66E497
tetradic
#9766E4 #E46674 #B3E466 #66E4D6
square
#9766E4 #E46674 #B3E466 #66E4D6
split-complementary
#9766E4 #E4D666 #74E466
monochromatic
#581FB0 #7432DB #9766E4 #BA9AED #DECEF6

Accessibility & contrast

On white

3.94
#9766E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#9766E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766E4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766E4#FFFFFF#000000##000000
##9766E41.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F80E8
Deuteranopia (green-blind)
#407FE1
Tritanopia (blue-blind)
#867F9B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9766e4;
/* rgb */ color: rgb(151, 102, 228);
/* oklch */ color: oklch(62.0% 0.185 298.8);
Tailwind
colors: {
  custom: {
    50: '#ba93ed',
    500: '#9766e4',
    950: '#000000',
  },
}
SCSS
$custom: #9766e4;
$custom-light: #ba93ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9766e4",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 263.333,
    "s": 70,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.18484,
    "h": 298.8
  },
  "luminance": 0.21683
}

Semantic roles & 50–950 ramp

primary
#9766E4
secondary
#D8E9BD
accent
#D21488
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9766E4

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

Preview Lab → · Contrast checker → · Palette generator →

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