#9788DC#9788DC

#9788DC is a light, vivid violet. Relative luminance 0.294; OKLCH L 67.4% C 0.123 H 290.9°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9788DC
RGBrgb(151, 136, 220)
HSLhsl(251, 55%, 70%)
HSVhsv(251, 38%, 86%)
CMYKcmyk(31.4%, 38.2%, 0%, 13.7%)
CIE-LABlab(61.09, 24.31, -40.96)
CIE-LCHlch(61.09, 47.63, 300.69°)
OKLaboklab(67.41% 0.0438 -0.1145)
OKLCHoklch(67.41% 0.123 290.9)
XYZxyz(34.4816, 29.3542, 71.5455)
Luminance0.2935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9788DC #CDDC88
analogous
#88A3DC #9788DC #C188DC
triadic
#9788DC #DC9788 #88DC97
tetradic
#9788DC #DC88A3 #CDDC88 #88DCC1
square
#9788DC #DC88A3 #CDDC88 #88DCC1
split-complementary
#9788DC #DCC188 #A3DC88
monochromatic
#4C35B5 #6E59CE #9788DC #C0B7EA #EAE7F8

Accessibility & contrast

On white

3.06
#9788DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#9788DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9788DC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9788DC#FFFFFF#000000##000000
##9788DC1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F95DF
Deuteranopia (green-blind)
#7092DA
Tritanopia (blue-blind)
#8797A8
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9788dc;
/* rgb */ color: rgb(151, 136, 220);
/* oklch */ color: oklch(67.4% 0.123 290.9);
Tailwind
colors: {
  custom: {
    50: '#b8aae7',
    500: '#9788dc',
    950: '#000000',
  },
}
SCSS
$custom: #9788dc;
$custom-light: #b8aae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9788dc",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 220
  },
  "hsl": {
    "h": 250.714,
    "s": 54.545,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67412,
    "c": 0.12261,
    "h": 290.9
  },
  "luminance": 0.29355
}

Semantic roles & 50–950 ramp

primary
#9788DC
secondary
#E8ECD4
accent
#C223A6
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #9788DC

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

Preview Lab → · Contrast checker → · Palette generator →

#9788DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva