#987FCC#987FCC

#987FCC is a light, moderate violet. Relative luminance 0.262; OKLCH L 65.0% C 0.115 H 298.1°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#987FCC
RGBrgb(152, 127, 204)
HSLhsl(259, 43%, 65%)
HSVhsv(259, 38%, 80%)
CMYKcmyk(25.5%, 37.7%, 0%, 20%)
CIE-LABlab(58.24, 25.78, -36.44)
CIE-LCHlch(58.24, 44.64, 305.28°)
OKLaboklab(65.02% 0.0541 -0.1014)
OKLCHoklch(65.02% 0.115 298.1)
XYZxyz(31.4348, 26.2135, 60.5186)
Luminance0.2621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FCC #B3CC7F
analogous
#7F8CCC #987FCC #BF7FCC
triadic
#987FCC #CC987F #7FCC98
tetradic
#987FCC #CC7F8C #B3CC7F #7FCCBF
square
#987FCC #CC7F8C #B3CC7F #7FCCBF
split-complementary
#987FCC #CCBF7F #8CCC7F
monochromatic
#593B95 #7553BB #987FCC #BBABDD #DED7EF

Accessibility & contrast

On white

3.36
#987FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#987FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FCC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FCC#FFFFFF#000000##000000
##987FCC1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8CCF
Deuteranopia (green-blind)
#6F8BCA
Tritanopia (blue-blind)
#8E8C9C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987fcc;
/* rgb */ color: rgb(152, 127, 204);
/* oklch */ color: oklch(65.0% 0.115 298.1);
Tailwind
colors: {
  custom: {
    50: '#b8a4dc',
    500: '#987fcc',
    950: '#000000',
  },
}
SCSS
$custom: #987fcc;
$custom-light: #b8a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#987fcc",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 204
  },
  "hsl": {
    "h": 259.481,
    "s": 43.017,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6502,
    "c": 0.11496,
    "h": 298.1
  },
  "luminance": 0.26214
}

Semantic roles & 50–950 ramp

primary
#987FCC
secondary
#D8E1C6
accent
#B62F8A
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987FCC

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

Preview Lab → · Contrast checker → · Palette generator →

#987FCC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva