#987CEB#987CEB

#987CEB is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.1% C 0.161 H 293.1°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#987CEB
RGBrgb(152, 124, 235)
HSLhsl(255, 74%, 70%)
HSVhsv(255, 47%, 92%)
CMYKcmyk(35.3%, 47.2%, 0%, 7.8%)
CIE-LABlab(59.06, 35.37, -52.52)
CIE-LCHlch(59.06, 63.32, 303.96°)
OKLaboklab(66.14% 0.0632 -0.1482)
OKLCHoklch(66.14% 0.161 293.1)
XYZxyz(35.1480, 27.0881, 81.9579)
Luminance0.2709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CEB #CFEB7C
analogous
#7C97EB #987CEB #CF7CEB
triadic
#987CEB #EB987C #7CEB98
tetradic
#987CEB #EB7C97 #CFEB7C #7CEBCF
square
#987CEB #EB7C97 #CFEB7C #7CEBCF
split-complementary
#987CEB #EBCF7C #97EB7C
monochromatic
#4B1FCD #6E47E3 #987CEB #C2B1F3 #EAE4FB

Accessibility & contrast

On white

3.27
#987CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#987CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CEB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CEB#FFFFFF#000000##000000
##987CEB1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590EF
Deuteranopia (green-blind)
#598CE8
Tritanopia (blue-blind)
#8492A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987ceb;
/* rgb */ color: rgb(152, 124, 235);
/* oklch */ color: oklch(66.1% 0.161 293.1);
Tailwind
colors: {
  custom: {
    50: '#baa2f2',
    500: '#987ceb',
    950: '#000000',
  },
}
SCSS
$custom: #987ceb;
$custom-light: #baa2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#987ceb",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 255.135,
    "s": 73.51,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66136,
    "c": 0.16111,
    "h": 293.1
  },
  "luminance": 0.27089
}

Semantic roles & 50–950 ramp

primary
#987CEB
secondary
#E9F1D2
accent
#D610A4
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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