#987DF0#987DF0

#987DF0 is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.6% C 0.166 H 292.1°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#987DF0
RGBrgb(152, 125, 240)
HSLhsl(254, 79%, 72%)
HSVhsv(254, 48%, 94%)
CMYKcmyk(36.7%, 47.9%, 0%, 5.9%)
CIE-LABlab(59.56, 36.11, -54.50)
CIE-LCHlch(59.56, 65.38, 303.53°)
OKLaboklab(66.6% 0.0625 -0.154)
OKLCHoklch(66.6% 0.166 292.1)
XYZxyz(36.0065, 27.6330, 85.8578)
Luminance0.2763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF0 #D5F07D
analogous
#7D9CF0 #987DF0 #D27DF0
triadic
#987DF0 #F0987D #7DF098
tetradic
#987DF0 #F07D9C #D5F07D #7DF0D2
square
#987DF0 #F07D9C #D5F07D #7DF0D2
split-complementary
#987DF0 #F0D27D #9CF07D
monochromatic
#4619DA #6D46EA #987DF0 #C3B4F6 #E9E4FC

Accessibility & contrast

On white

3.22
#987DF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#987DF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF0
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF0#FFFFFF#000000##000000
##987DF01.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5291F4
Deuteranopia (green-blind)
#568DED
Tritanopia (blue-blind)
#8294AB
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987df0;
/* rgb */ color: rgb(152, 125, 240);
/* oklch */ color: oklch(66.6% 0.166 292.1);
Tailwind
colors: {
  custom: {
    50: '#baa3f5',
    500: '#987df0',
    950: '#000000',
  },
}
SCSS
$custom: #987df0;
$custom-light: #baa3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987df0",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 240
  },
  "hsl": {
    "h": 254.087,
    "s": 79.31,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66598,
    "c": 0.16618,
    "h": 292.1
  },
  "luminance": 0.27634
}

Semantic roles & 50–950 ramp

primary
#987DF0
secondary
#ECF3D6
accent
#DC0AAA
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DF0

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

Preview Lab → · Contrast checker → · Palette generator →

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