#987DF3#987DF3

#987DF3 is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.8% C 0.170 H 291.7°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#987DF3
RGBrgb(152, 125, 243)
HSLhsl(254, 83%, 72%)
HSVhsv(254, 49%, 95%)
CMYKcmyk(37.4%, 48.6%, 0%, 4.7%)
CIE-LABlab(59.72, 36.91, -55.90)
CIE-LCHlch(59.72, 66.99, 303.43°)
OKLaboklab(66.77% 0.0628 -0.1581)
OKLCHoklch(66.77% 0.17 291.7)
XYZxyz(36.4559, 27.8128, 88.2243)
Luminance0.2781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF3 #D8F37D
analogous
#7D9DF3 #987DF3 #D37DF3
triadic
#987DF3 #F3987D #7DF398
tetradic
#987DF3 #F37D9D #D8F37D #7DF3D3
square
#987DF3 #F37D9D #D8F37D #7DF3D3
split-complementary
#987DF3 #F3D37D #9DF37D
monochromatic
#4315E1 #6C45EE #987DF3 #C4B5F8 #E9E3FC

Accessibility & contrast

On white

3.20
#987DF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#987DF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF3
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF3#FFFFFF#000000##000000
##987DF31.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5092F7
Deuteranopia (green-blind)
#538DF0
Tritanopia (blue-blind)
#8195AD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987df3;
/* rgb */ color: rgb(152, 125, 243);
/* oklch */ color: oklch(66.8% 0.170 291.7);
Tailwind
colors: {
  custom: {
    50: '#baa3f8',
    500: '#987df3',
    950: '#000000',
  },
}
SCSS
$custom: #987df3;
$custom-light: #baa3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987df3",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 243
  },
  "hsl": {
    "h": 253.729,
    "s": 83.099,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66774,
    "c": 0.1701,
    "h": 291.7
  },
  "luminance": 0.27814
}

Semantic roles & 50–950 ramp

primary
#987DF3
secondary
#EEF4D7
accent
#E006AE
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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