#9787CD#9787CD

#9787CD is a light, moderate violet. Relative luminance 0.283; OKLCH L 66.5% C 0.103 H 293.9°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#9787CD
RGBrgb(151, 135, 205)
HSLhsl(254, 41%, 67%)
HSVhsv(254, 34%, 80%)
CMYKcmyk(26.3%, 34.1%, 0%, 19.6%)
CIE-LABlab(60.17, 21.11, -33.99)
CIE-LCHlch(60.17, 40.01, 301.84°)
OKLaboklab(66.49% 0.0418 -0.0944)
OKLCHoklch(66.49% 0.103 293.9)
XYZxyz(32.4433, 28.3146, 61.5018)
Luminance0.2832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787CD #BDCD87
analogous
#879ACD #9787CD #BA87CD
triadic
#9787CD #CD9787 #87CD97
tetradic
#9787CD #CD879A #BDCD87 #87CDBA
square
#9787CD #CD879A #BDCD87 #87CDBA
split-complementary
#9787CD #CDBA87 #9ACD87
monochromatic
#54409A #725CBB #9787CD #BCB2DF #E2DDF1

Accessibility & contrast

On white

3.15
#9787CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#9787CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787CD
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787CD#FFFFFF#000000##000000
##9787CD1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7592D0
Deuteranopia (green-blind)
#7790CB
Tritanopia (blue-blind)
#8C93A1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #9787cd;
/* rgb */ color: rgb(151, 135, 205);
/* oklch */ color: oklch(66.5% 0.103 293.9);
Tailwind
colors: {
  custom: {
    50: '#b7aadc',
    500: '#9787cd',
    950: '#000000',
  },
}
SCSS
$custom: #9787cd;
$custom-light: #b7aadc;
$custom-dark: #000000;
JSON
{
  "hex": "#9787cd",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 253.714,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66488,
    "c": 0.10327,
    "h": 293.9
  },
  "luminance": 0.28315
}

Semantic roles & 50–950 ramp

primary
#9787CD
secondary
#DEE3CD
accent
#B43196
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#111015
muted
#807F83

Preview Lab

Preview with #9787CD

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

Preview Lab → · Contrast checker → · Palette generator →

#9787CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva