#9E87BF#9E87BF

#9E87BF is a light, moderate violet. Relative luminance 0.284; OKLCH L 66.5% C 0.085 H 303.0°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9E87BF
RGBrgb(158, 135, 191)
HSLhsl(265, 30%, 64%)
HSVhsv(265, 29%, 75%)
CMYKcmyk(17.3%, 29.3%, 0%, 25.1%)
CIE-LABlab(60.21, 19.94, -25.99)
CIE-LCHlch(60.21, 32.76, 307.50°)
OKLaboklab(66.48% 0.0463 -0.0714)
OKLCHoklch(66.48% 0.085 303)
XYZxyz(32.1666, 28.3587, 53.0593)
Luminance0.2836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E87BF #A8BF87
analogous
#878CBF #9E87BF #BA87BF
triadic
#9E87BF #BF9E87 #87BF9E
tetradic
#9E87BF #BF878C #A8BF87 #87BFBA
square
#9E87BF #BF878C #A8BF87 #87BFBA
split-complementary
#9E87BF #BFBA87 #8CBF87
monochromatic
#604785 #7E5FAA #9E87BF #BEAFD4 #DFD7EA

Accessibility & contrast

On white

3.15
#9E87BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#9E87BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E87BF
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E87BF#FFFFFF#000000##000000
##9E87BF1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C91C1
Deuteranopia (green-blind)
#8091BD
Tritanopia (blue-blind)
#998F9B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #9e87bf;
/* rgb */ color: rgb(158, 135, 191);
/* oklch */ color: oklch(66.5% 0.085 303.0);
Tailwind
colors: {
  custom: {
    50: '#bbaad2',
    500: '#9e87bf',
    950: '#000000',
  },
}
SCSS
$custom: #9e87bf;
$custom-light: #bbaad2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e87bf",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 191
  },
  "hsl": {
    "h": 264.643,
    "s": 30.435,
    "l": 63.922
  },
  "oklch": {
    "l": 0.66476,
    "c": 0.08511,
    "h": 303
  },
  "luminance": 0.28359
}

Semantic roles & 50–950 ramp

primary
#9E87BF
secondary
#D3DBC7
accent
#A93C7C
background
#FBFAFC
surface
#F6F4F9
border
#D0CED2
text
#121014
muted
#817F82

Preview Lab

Preview with #9E87BF

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

Preview Lab → · Contrast checker → · Palette generator →

#9E87BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva