#9766EF#9766EF

#9766EF is a light, vivid violet. Relative luminance 0.223; OKLCH L 62.7% C 0.198 H 296.8°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9766EF
RGBrgb(151, 102, 239)
HSLhsl(261, 81%, 67%)
HSVhsv(261, 57%, 94%)
CMYKcmyk(36.8%, 57.3%, 0%, 6.3%)
CIE-LABlab(54.36, 48.47, -62.27)
CIE-LCHlch(54.36, 78.92, 307.90°)
OKLaboklab(62.7% 0.0893 -0.1768)
OKLCHoklch(62.7% 0.198 296.8)
XYZxyz(33.0899, 22.3135, 84.2082)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9766EF #BEEF66
analogous
#667AEF #9766EF #DC66EF
triadic
#9766EF #EF9766 #66EF97
tetradic
#9766EF #EF667A #BEEF66 #66EFDC
square
#9766EF #EF667A #BEEF66 #66EFDC
split-complementary
#9766EF #EFDC66 #7AEF66
monochromatic
#5415C6 #712FE9 #9766EF #BD9DF5 #E2D5FB

Accessibility & contrast

On white

3.84
#9766EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#9766EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9766EF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9766EF#FFFFFF#000000##000000
##9766EF1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A83F3
Deuteranopia (green-blind)
#3180EC
Tritanopia (blue-blind)
#8283A1
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9766ef;
/* rgb */ color: rgb(151, 102, 239);
/* oklch */ color: oklch(62.7% 0.198 296.8);
Tailwind
colors: {
  custom: {
    50: '#ba93f5',
    500: '#9766ef',
    950: '#000000',
  },
}
SCSS
$custom: #9766ef;
$custom-light: #ba93f5;
$custom-dark: #000000;
JSON
{
  "hex": "#9766ef",
  "rgb": {
    "r": 151,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 261.46,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.62701,
    "c": 0.19809,
    "h": 296.8
  },
  "luminance": 0.22314
}

Semantic roles & 50–950 ramp

primary
#9766EF
secondary
#DFEEC2
accent
#DD0891
background
#FBF9FF
surface
#F7F1FE
border
#D0CBD6
text
#120D17
muted
#817E85

Preview Lab

Preview with #9766EF

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

Preview Lab → · Contrast checker → · Palette generator →

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