#9766F5#9766F5

#9766F5 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.1% C 0.205 H 295.7°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9766F5
RGBrgb(151, 102, 245)
HSLhsl(261, 88%, 68%)
HSVhsv(261, 58%, 96%)
CMYKcmyk(38.4%, 58.4%, 0%, 3.9%)
CIE-LABlab(54.73, 50.01, -65.01)
CIE-LCHlch(54.73, 82.02, 307.57°)
OKLaboklab(63.1% 0.0892 -0.1849)
OKLCHoklch(63.1% 0.205 295.7)
XYZxyz(33.9910, 22.6740, 88.9541)
Luminance0.2268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766F5 #C4F566
analogous
#667DF5 #9766F5 #DE66F5
triadic
#9766F5 #F59766 #66F597
tetradic
#9766F5 #F5667D #C4F566 #66F5DE
square
#9766F5 #F5667D #C4F566 #66F5DE
split-complementary
#9766F5 #F5DE66 #7DF566
monochromatic
#510ED3 #702DF1 #9766F5 #BE9FF9 #E5D9FD

Accessibility & contrast

On white

3.79
#9766F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#9766F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766F5
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766F5#FFFFFF#000000##000000
##9766F51.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FA
Deuteranopia (green-blind)
#2781F2
Tritanopia (blue-blind)
#8085A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9766f5;
/* rgb */ color: rgb(151, 102, 245);
/* oklch */ color: oklch(63.1% 0.205 295.7);
Tailwind
colors: {
  custom: {
    50: '#bb93f9',
    500: '#9766f5',
    950: '#000000',
  },
}
SCSS
$custom: #9766f5;
$custom-light: #bb93f9;
$custom-dark: #000000;
JSON
{
  "hex": "#9766f5",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 245
  },
  "hsl": {
    "h": 260.559,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63098,
    "c": 0.20526,
    "h": 295.7
  },
  "luminance": 0.22675
}

Semantic roles & 50–950 ramp

primary
#9766F5
secondary
#E2F1C6
accent
#E40196
background
#FCF9FF
surface
#F8F1FF
border
#D1CBD7
text
#120D17
muted
#817E85

Preview Lab

Preview with #9766F5

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

Preview Lab → · Contrast checker → · Palette generator →

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