#9787CA#9787CA

#9787CA is a light, moderate violet. Relative luminance 0.282; OKLCH L 66.3% C 0.099 H 294.5°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#9787CA
RGBrgb(151, 135, 202)
HSLhsl(254, 39%, 66%)
HSVhsv(254, 33%, 79%)
CMYKcmyk(25.2%, 33.2%, 0%, 20.8%)
CIE-LABlab(60.04, 20.37, -32.51)
CIE-LCHlch(60.04, 38.36, 302.07°)
OKLaboklab(66.35% 0.0411 -0.0901)
OKLCHoklch(66.35% 0.099 294.5)
XYZxyz(32.0846, 28.1711, 59.6129)
Luminance0.2817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787CA #BACA87
analogous
#8798CA #9787CA #B887CA
triadic
#9787CA #CA9787 #87CA97
tetradic
#9787CA #CA8798 #BACA87 #87CAB8
square
#9787CA #CA8798 #BACA87 #87CAB8
split-complementary
#9787CA #CAB887 #98CA87
monochromatic
#564295 #725DB7 #9787CA #BCB1DD #E1DCEF

Accessibility & contrast

On white

3.17
#9787CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#9787CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787CA
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787CA#FFFFFF#000000##000000
##9787CA1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7691CD
Deuteranopia (green-blind)
#7890C8
Tritanopia (blue-blind)
#8D929F
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #9787ca;
/* rgb */ color: rgb(151, 135, 202);
/* oklch */ color: oklch(66.3% 0.099 294.5);
Tailwind
colors: {
  custom: {
    50: '#b7aada',
    500: '#9787ca',
    950: '#000000',
  },
}
SCSS
$custom: #9787ca;
$custom-light: #b7aada;
$custom-dark: #000000;
JSON
{
  "hex": "#9787ca",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 254.328,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.66347,
    "c": 0.09907,
    "h": 294.5
  },
  "luminance": 0.28172
}

Semantic roles & 50–950 ramp

primary
#9787CA
secondary
#DCE1CB
accent
#B23494
background
#FBFAFD
surface
#F6F4FA
border
#D0CED3
text
#111015
muted
#807F83

Preview Lab

Preview with #9787CA

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

Preview Lab → · Contrast checker → · Palette generator →

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