#987DEF#987DEF

#987DEF is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.5% C 0.165 H 292.2°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#987DEF
RGBrgb(152, 125, 239)
HSLhsl(254, 78%, 71%)
HSVhsv(254, 48%, 94%)
CMYKcmyk(36.4%, 47.7%, 0%, 6.3%)
CIE-LABlab(59.50, 35.85, -54.04)
CIE-LCHlch(59.50, 64.85, 303.56°)
OKLaboklab(66.54% 0.0624 -0.1526)
OKLCHoklch(66.54% 0.165 292.2)
XYZxyz(35.8584, 27.5738, 85.0776)
Luminance0.2757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DEF #D4EF7D
analogous
#7D9BEF #987DEF #D17DEF
triadic
#987DEF #EF987D #7DEF98
tetradic
#987DEF #EF7D9B #D4EF7D #7DEFD1
square
#987DEF #EF7D9B #D4EF7D #7DEFD1
split-complementary
#987DEF #EFD17D #9BEF7D
monochromatic
#471AD7 #6D47E8 #987DEF #C3B3F6 #E9E4FC

Accessibility & contrast

On white

3.22
#987DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#987DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DEF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DEF#FFFFFF#000000##000000
##987DEF1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5391F3
Deuteranopia (green-blind)
#578DEC
Tritanopia (blue-blind)
#8293AB
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987def;
/* rgb */ color: rgb(152, 125, 239);
/* oklch */ color: oklch(66.5% 0.165 292.2);
Tailwind
colors: {
  custom: {
    50: '#baa3f5',
    500: '#987def',
    950: '#000000',
  },
}
SCSS
$custom: #987def;
$custom-light: #baa3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987def",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 254.211,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6654,
    "c": 0.16487,
    "h": 292.2
  },
  "luminance": 0.27575
}

Semantic roles & 50–950 ramp

primary
#987DEF
secondary
#ECF3D5
accent
#DA0BA9
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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