#987DE3#987DE3

#987DE3 is a light, vivid violet. Relative luminance 0.269; OKLCH L 65.9% C 0.149 H 294.1°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#987DE3
RGBrgb(152, 125, 227)
HSLhsl(256, 65%, 69%)
HSVhsv(256, 45%, 89%)
CMYKcmyk(33%, 44.9%, 0%, 11%)
CIE-LABlab(58.87, 32.72, -48.36)
CIE-LCHlch(58.87, 58.39, 304.08°)
OKLaboklab(65.86% 0.0609 -0.136)
OKLCHoklch(65.86% 0.149 294.1)
XYZxyz(34.1441, 26.8881, 76.0492)
Luminance0.2689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DE3 #C8E37D
analogous
#7D95E3 #987DE3 #CB7DE3
triadic
#987DE3 #E3987D #7DE398
tetradic
#987DE3 #E37D95 #C8E37D #7DE3CB
square
#987DE3 #E37D95 #C8E37D #7DE3CB
split-complementary
#987DE3 #E3CB7D #95E37D
monochromatic
#5029BD #704BD8 #987DE3 #C0AFEE #E8E2F9

Accessibility & contrast

On white

3.29
#987DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#987DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DE3
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DE3#FFFFFF#000000##000000
##987DE31.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8FE7
Deuteranopia (green-blind)
#608CE1
Tritanopia (blue-blind)
#8790A5
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987de3;
/* rgb */ color: rgb(152, 125, 227);
/* oklch */ color: oklch(65.9% 0.149 294.1);
Tailwind
colors: {
  custom: {
    50: '#b9a3ec',
    500: '#987de3',
    950: '#000000',
  },
}
SCSS
$custom: #987de3;
$custom-light: #b9a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#987de3",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 227
  },
  "hsl": {
    "h": 255.882,
    "s": 64.557,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65861,
    "c": 0.14905,
    "h": 294.1
  },
  "luminance": 0.26889
}

Semantic roles & 50–950 ramp

primary
#987DE3
secondary
#E5EDCF
accent
#CC199D
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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