#987CE3#987CE3

#987CE3 is a light, vivid violet. Relative luminance 0.266; OKLCH L 65.7% C 0.151 H 294.4°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#987CE3
RGBrgb(152, 124, 227)
HSLhsl(256, 65%, 69%)
HSVhsv(256, 45%, 89%)
CMYKcmyk(33%, 45.4%, 0%, 11%)
CIE-LABlab(58.64, 33.29, -48.73)
CIE-LCHlch(58.64, 59.02, 304.34°)
OKLaboklab(65.68% 0.0622 -0.1371)
OKLCHoklch(65.68% 0.151 294.4)
XYZxyz(34.0182, 26.6362, 76.0072)
Luminance0.2664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CE3 #C7E37C
analogous
#7C94E3 #987CE3 #CC7CE3
triadic
#987CE3 #E3987C #7CE398
tetradic
#987CE3 #E37C94 #C7E37C #7CE3CC
square
#987CE3 #E37C94 #C7E37C #7CE3CC
split-complementary
#987CE3 #E3CC7C #94E37C
monochromatic
#5128BC #704AD8 #987CE3 #C0AEEE #E7E1F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987CE3#FFFFFF#000000##000000
##987CE31.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)
#5A8EE7
Deuteranopia (green-blind)
#5F8BE1
Tritanopia (blue-blind)
#878FA5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987ce3;
/* rgb */ color: rgb(152, 124, 227);
/* oklch */ color: oklch(65.7% 0.151 294.4);
Tailwind
colors: {
  custom: {
    50: '#b9a2ec',
    500: '#987ce3',
    950: '#000000',
  },
}
SCSS
$custom: #987ce3;
$custom-light: #b9a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#987ce3",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 227
  },
  "hsl": {
    "h": 256.311,
    "s": 64.78,
    "l": 68.824
  },
  "oklch": {
    "l": 0.65684,
    "c": 0.15059,
    "h": 294.4
  },
  "luminance": 0.26637
}

Semantic roles & 50–950 ramp

primary
#987CE3
secondary
#E4EDCE
accent
#CD199C
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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