#987EF0#987EF0

#987EF0 is a light, vivid violet. Relative luminance 0.279; OKLCH L 66.8% C 0.165 H 291.8°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#987EF0
RGBrgb(152, 126, 240)
HSLhsl(254, 79%, 72%)
HSVhsv(254, 48%, 94%)
CMYKcmyk(36.7%, 47.5%, 0%, 5.9%)
CIE-LABlab(59.79, 35.54, -54.14)
CIE-LCHlch(59.79, 64.76, 303.29°)
OKLaboklab(66.77% 0.0612 -0.1529)
OKLCHoklch(66.77% 0.165 291.8)
XYZxyz(36.1338, 27.8875, 85.9002)
Luminance0.2789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987EF0 #D6F07E
analogous
#7E9DF0 #987EF0 #D17EF0
triadic
#987EF0 #F0987E #7EF098
tetradic
#987EF0 #F07E9D #D6F07E #7EF0D1
square
#987EF0 #F07E9D #D6F07E #7EF0D1
split-complementary
#987EF0 #F0D17E #9DF07E
monochromatic
#4519DA #6C47EA #987EF0 #C4B5F6 #E9E4FC

Accessibility & contrast

On white

3.19
#987EF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#987EF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987EF0
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987EF0#FFFFFF#000000##000000
##987EF01.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5492F4
Deuteranopia (green-blind)
#578EED
Tritanopia (blue-blind)
#8294AC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987ef0;
/* rgb */ color: rgb(152, 126, 240);
/* oklch */ color: oklch(66.8% 0.165 291.8);
Tailwind
colors: {
  custom: {
    50: '#baa4f5',
    500: '#987ef0',
    950: '#000000',
  },
}
SCSS
$custom: #987ef0;
$custom-light: #baa4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#987ef0",
  "rgb": {
    "r": 152,
    "g": 126,
    "b": 240
  },
  "hsl": {
    "h": 253.684,
    "s": 79.167,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66772,
    "c": 0.16471,
    "h": 291.8
  },
  "luminance": 0.27888
}

Semantic roles & 50–950 ramp

primary
#987EF0
secondary
#EDF3D6
accent
#DB0AAC
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #987EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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