#987DF2#987DF2

#987DF2 is a light, vivid violet. Relative luminance 0.278; OKLCH L 66.7% C 0.169 H 291.8°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#987DF2
RGBrgb(152, 125, 242)
HSLhsl(254, 82%, 72%)
HSVhsv(254, 48%, 95%)
CMYKcmyk(37.2%, 48.3%, 0%, 5.1%)
CIE-LABlab(59.66, 36.64, -55.44)
CIE-LCHlch(59.66, 66.45, 303.46°)
OKLaboklab(66.72% 0.0627 -0.1567)
OKLCHoklch(66.72% 0.169 291.8)
XYZxyz(36.3053, 27.7525, 87.4311)
Luminance0.2775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DF2 #D7F27D
analogous
#7D9DF2 #987DF2 #D27DF2
triadic
#987DF2 #F2987D #7DF298
tetradic
#987DF2 #F27D9D #D7F27D #7DF2D2
square
#987DF2 #F27D9D #D7F27D #7DF2D2
split-complementary
#987DF2 #F2D27D #9DF27D
monochromatic
#4416DE #6C45EC #987DF2 #C4B5F8 #E9E3FC

Accessibility & contrast

On white

3.21
#987DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#987DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DF2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DF2#FFFFFF#000000##000000
##987DF21.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5192F6
Deuteranopia (green-blind)
#548DEF
Tritanopia (blue-blind)
#8194AC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987df2;
/* rgb */ color: rgb(152, 125, 242);
/* oklch */ color: oklch(66.7% 0.169 291.8);
Tailwind
colors: {
  custom: {
    50: '#baa3f7',
    500: '#987df2',
    950: '#000000',
  },
}
SCSS
$custom: #987df2;
$custom-light: #baa3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#987df2",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 253.846,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.66715,
    "c": 0.1688,
    "h": 291.8
  },
  "luminance": 0.27753
}

Semantic roles & 50–950 ramp

primary
#987DF2
secondary
#EDF4D7
accent
#DE07AD
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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