#987CED#987CED

#987CED is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.3% C 0.164 H 292.8°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#987CED
RGBrgb(152, 124, 237)
HSLhsl(255, 76%, 71%)
HSVhsv(255, 48%, 93%)
CMYKcmyk(35.9%, 47.7%, 0%, 7.1%)
CIE-LABlab(59.16, 35.89, -53.47)
CIE-LCHlch(59.16, 64.40, 303.88°)
OKLaboklab(66.25% 0.0634 -0.1509)
OKLCHoklch(66.25% 0.164 292.8)
XYZxyz(35.4386, 27.2043, 83.4882)
Luminance0.2721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CED #D1ED7C
analogous
#7C98ED #987CED #D07CED
triadic
#987CED #ED987C #7CED98
tetradic
#987CED #ED7C98 #D1ED7C #7CEDD0
square
#987CED #ED7C98 #D1ED7C #7CEDD0
split-complementary
#987CED #EDD07C #98ED7C
monochromatic
#4A1DD2 #6E46E6 #987CED #C2B2F4 #EAE4FB

Accessibility & contrast

On white

3.26
#987CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#987CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CED
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CED#FFFFFF#000000##000000
##987CED1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5390F1
Deuteranopia (green-blind)
#578CEA
Tritanopia (blue-blind)
#8392A9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987ced;
/* rgb */ color: rgb(152, 124, 237);
/* oklch */ color: oklch(66.3% 0.164 292.8);
Tailwind
colors: {
  custom: {
    50: '#baa2f3',
    500: '#987ced',
    950: '#000000',
  },
}
SCSS
$custom: #987ced;
$custom-light: #baa2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#987ced",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 237
  },
  "hsl": {
    "h": 254.867,
    "s": 75.839,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66251,
    "c": 0.16373,
    "h": 292.8
  },
  "luminance": 0.27205
}

Semantic roles & 50–950 ramp

primary
#987CED
secondary
#EAF2D3
accent
#D80DA6
background
#FBFAFE
surface
#F7F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CED

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

Preview Lab → · Contrast checker → · Palette generator →

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