#9787C0#9787C0

#9787C0 is a light, moderate violet. Relative luminance 0.277; OKLCH L 65.9% C 0.085 H 296.9°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9787C0
RGBrgb(151, 135, 192)
HSLhsl(257, 31%, 64%)
HSVhsv(257, 30%, 75%)
CMYKcmyk(21.4%, 29.7%, 0%, 24.7%)
CIE-LABlab(59.63, 17.96, -27.50)
CIE-LCHlch(59.63, 32.85, 303.15°)
OKLaboklab(65.89% 0.0385 -0.0758)
OKLCHoklch(65.89% 0.085 296.9)
XYZxyz(30.9388, 27.7128, 53.5781)
Luminance0.2771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787C0 #B0C087
analogous
#8794C0 #9787C0 #B487C0
triadic
#9787C0 #C09787 #87C097
tetradic
#9787C0 #C08794 #B0C087 #87C0B4
square
#9787C0 #C08794 #B0C087 #87C0B4
split-complementary
#9787C0 #C0B487 #94C087
monochromatic
#584686 #745FAB #9787C0 #BAAFD5 #DDD7EA

Accessibility & contrast

On white

3.21
#9787C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#9787C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787C0
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787C0#FFFFFF#000000##000000
##9787C01.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A90C2
Deuteranopia (green-blind)
#7C8FBE
Tritanopia (blue-blind)
#8F909B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9787c0;
/* rgb */ color: rgb(151, 135, 192);
/* oklch */ color: oklch(65.9% 0.085 296.9);
Tailwind
colors: {
  custom: {
    50: '#b6aad3',
    500: '#9787c0',
    950: '#000000',
  },
}
SCSS
$custom: #9787c0;
$custom-light: #b6aad3;
$custom-dark: #000000;
JSON
{
  "hex": "#9787c0",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 192
  },
  "hsl": {
    "h": 256.842,
    "s": 31.148,
    "l": 64.118
  },
  "oklch": {
    "l": 0.65892,
    "c": 0.08503,
    "h": 296.9
  },
  "luminance": 0.27713
}

Semantic roles & 50–950 ramp

primary
#9787C0
secondary
#D6DBC7
accent
#AA3C8B
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#111014
muted
#807F82

Preview Lab

Preview with #9787C0

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

Preview Lab → · Contrast checker → · Palette generator →

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