#9787BC#9787BC

#9787BC is a light, moderate violet. Relative luminance 0.275; OKLCH L 65.7% C 0.079 H 298.0°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9787BC
RGBrgb(151, 135, 188)
HSLhsl(258, 28%, 63%)
HSVhsv(258, 28%, 74%)
CMYKcmyk(19.7%, 28.2%, 0%, 26.3%)
CIE-LABlab(59.47, 17.02, -25.48)
CIE-LCHlch(59.47, 30.64, 303.74°)
OKLaboklab(65.72% 0.0373 -0.0701)
OKLCHoklch(65.72% 0.079 298)
XYZxyz(30.5016, 27.5379, 51.2756)
Luminance0.2754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787BC #ACBC87
analogous
#8791BC #9787BC #B187BC
triadic
#9787BC #BC9787 #87BC97
tetradic
#9787BC #BC8791 #ACBC87 #87BCB1
square
#9787BC #BC8791 #ACBC87 #87BCB1
split-complementary
#9787BC #BCB187 #91BC87
monochromatic
#594881 #7560A6 #9787BC #B9AED2 #DBD6E8

Accessibility & contrast

On white

3.23
#9787BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#9787BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787BC
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787BC#FFFFFF#000000##000000
##9787BC1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8FBE
Deuteranopia (green-blind)
#7E8FBB
Tritanopia (blue-blind)
#908F9A
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #9787bc;
/* rgb */ color: rgb(151, 135, 188);
/* oklch */ color: oklch(65.7% 0.079 298.0);
Tailwind
colors: {
  custom: {
    50: '#b6aad0',
    500: '#9787bc',
    950: '#000000',
  },
}
SCSS
$custom: #9787bc;
$custom-light: #b6aad0;
$custom-dark: #000000;
JSON
{
  "hex": "#9787bc",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 188
  },
  "hsl": {
    "h": 258.113,
    "s": 28.342,
    "l": 63.333
  },
  "oklch": {
    "l": 0.65717,
    "c": 0.0794,
    "h": 298
  },
  "luminance": 0.27538
}

Semantic roles & 50–950 ramp

primary
#9787BC
secondary
#D3D9C6
accent
#A73F87
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#111014
muted
#807F82

Preview Lab

Preview with #9787BC

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

Preview Lab → · Contrast checker → · Palette generator →

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