#987DCF#987DCF

#987DCF is a light, vivid violet. Relative luminance 0.258; OKLCH L 64.8% C 0.122 H 298.1°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#987DCF
RGBrgb(152, 125, 207)
HSLhsl(260, 46%, 65%)
HSVhsv(260, 40%, 81%)
CMYKcmyk(26.6%, 39.6%, 0%, 18.8%)
CIE-LABlab(57.89, 27.67, -38.68)
CIE-LCHlch(57.89, 47.56, 305.58°)
OKLaboklab(64.8% 0.0576 -0.1079)
OKLCHoklch(64.8% 0.122 298.1)
XYZxyz(31.5424, 25.8474, 62.3466)
Luminance0.2585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DCF #B4CF7D
analogous
#7D8BCF #987DCF #C17DCF
triadic
#987DCF #CF987D #7DCF98
tetradic
#987DCF #CF7D8B #B4CF7D #7DCFC1
square
#987DCF #CF7D8B #B4CF7D #7DCFC1
split-complementary
#987DCF #CFC17D #8BCF7D
monochromatic
#583999 #7550BE #987DCF #BBAAE0 #DFD6F0

Accessibility & contrast

On white

3.40
#987DCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#987DCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DCF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DCF#FFFFFF#000000##000000
##987DCF1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#678BD2
Deuteranopia (green-blind)
#6C8ACD
Tritanopia (blue-blind)
#8D8B9C
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #987dcf;
/* rgb */ color: rgb(152, 125, 207);
/* oklch */ color: oklch(64.8% 0.122 298.1);
Tailwind
colors: {
  custom: {
    50: '#b8a3de',
    500: '#987dcf',
    950: '#000000',
  },
}
SCSS
$custom: #987dcf;
$custom-light: #b8a3de;
$custom-dark: #000000;
JSON
{
  "hex": "#987dcf",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 207
  },
  "hsl": {
    "h": 259.756,
    "s": 46.067,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64802,
    "c": 0.12228,
    "h": 298.1
  },
  "luminance": 0.25848
}

Semantic roles & 50–950 ramp

primary
#987DCF
secondary
#D9E2C6
accent
#B92C8B
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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