#987DDF#987DDF

#987DDF is a light, vivid violet. Relative luminance 0.267; OKLCH L 65.6% C 0.144 H 294.8°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#987DDF
RGBrgb(152, 125, 223)
HSLhsl(257, 60%, 68%)
HSVhsv(257, 44%, 87%)
CMYKcmyk(31.8%, 43.9%, 0%, 12.5%)
CIE-LABlab(58.67, 31.69, -46.45)
CIE-LCHlch(58.67, 56.23, 304.31°)
OKLaboklab(65.64% 0.0603 -0.1305)
OKLCHoklch(65.64% 0.144 294.8)
XYZxyz(33.5985, 26.6698, 73.1754)
Luminance0.2667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DDF #C4DF7D
analogous
#7D93DF #987DDF #C97DDF
triadic
#987DDF #DF987D #7DDF98
tetradic
#987DDF #DF7D93 #C4DF7D #7DDFC9
square
#987DDF #DF7D93 #C4DF7D #7DDFC9
split-complementary
#987DDF #DFC97D #93DF7D
monochromatic
#522DB5 #714CD3 #987DDF #BFAEEB #E6DFF7

Accessibility & contrast

On white

3.32
#987DDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#987DDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DDF
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DDF#FFFFFF#000000##000000
##987DDF1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8EE3
Deuteranopia (green-blind)
#638CDD
Tritanopia (blue-blind)
#888FA3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987ddf;
/* rgb */ color: rgb(152, 125, 223);
/* oklch */ color: oklch(65.6% 0.144 294.8);
Tailwind
colors: {
  custom: {
    50: '#b9a3e9',
    500: '#987ddf',
    950: '#000000',
  },
}
SCSS
$custom: #987ddf;
$custom-light: #b9a3e9;
$custom-dark: #000000;
JSON
{
  "hex": "#987ddf",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 223
  },
  "hsl": {
    "h": 256.531,
    "s": 60.494,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65642,
    "c": 0.14373,
    "h": 294.8
  },
  "luminance": 0.2667
}

Semantic roles & 50–950 ramp

primary
#987DDF
secondary
#E3EBCD
accent
#C81D99
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987DDF

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

Preview Lab → · Contrast checker → · Palette generator →

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