#9E8CCC#9E8CCC

#9E8CCC is a light, moderate violet. Relative luminance 0.304; OKLCH L 68.0% C 0.095 H 296.7°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#9E8CCC
RGBrgb(158, 140, 204)
HSLhsl(257, 39%, 67%)
HSVhsv(257, 31%, 80%)
CMYKcmyk(22.5%, 31.4%, 0%, 20%)
CIE-LABlab(61.98, 20.10, -30.57)
CIE-LCHlch(61.98, 36.58, 303.32°)
OKLaboklab(68.01% 0.0425 -0.0845)
OKLCHoklch(68.01% 0.095 296.7)
XYZxyz(34.3752, 30.3846, 61.1688)
Luminance0.3039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8CCC #BACC8C
analogous
#8C9ACC #9E8CCC #BE8CCC
triadic
#9E8CCC #CC9E8C #8CCC9E
tetradic
#9E8CCC #CC8C9A #BACC8C #8CCCBE
square
#9E8CCC #CC8C9A #BACC8C #8CCCBE
split-complementary
#9E8CCC #CCBE8C #9ACC8C
monochromatic
#5C449A #7A62B9 #9E8CCC #C2B6DF #E6E1F2

Accessibility & contrast

On white

2.97
#9E8CCC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#9E8CCC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E8CCC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8CCC#FFFFFF#000000##000000
##9E8CCC1.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D96CF
Deuteranopia (green-blind)
#7F95CA
Tritanopia (blue-blind)
#9596A3
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9e8ccc;
/* rgb */ color: rgb(158, 140, 204);
/* oklch */ color: oklch(68.0% 0.095 296.7);
Tailwind
colors: {
  custom: {
    50: '#bbaddb',
    500: '#9e8ccc',
    950: '#000000',
  },
}
SCSS
$custom: #9e8ccc;
$custom-light: #bbaddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8ccc",
  "rgb": {
    "r": 158,
    "g": 140,
    "b": 204
  },
  "hsl": {
    "h": 256.875,
    "s": 38.554,
    "l": 67.451
  },
  "oklch": {
    "l": 0.68009,
    "c": 0.09459,
    "h": 296.7
  },
  "luminance": 0.30385
}

Semantic roles & 50–950 ramp

primary
#9E8CCC
secondary
#DEE4D0
accent
#B2348E
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#121015
muted
#817F83

Preview Lab

Preview with #9E8CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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