#987FF3#987FF3

#987FF3 is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.1% C 0.167 H 291.1°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#987FF3
RGBrgb(152, 127, 243)
HSLhsl(253, 83%, 73%)
HSVhsv(253, 48%, 95%)
CMYKcmyk(37.4%, 47.7%, 0%, 4.7%)
CIE-LABlab(60.18, 35.77, -55.17)
CIE-LCHlch(60.18, 65.75, 302.96°)
OKLaboklab(67.12% 0.0603 -0.1559)
OKLCHoklch(67.12% 0.167 291.1)
XYZxyz(36.7116, 28.3242, 88.3095)
Luminance0.2833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FF3 #DAF37F
analogous
#7FA0F3 #987FF3 #D27FF3
triadic
#987FF3 #F3987F #7FF398
tetradic
#987FF3 #F37FA0 #DAF37F #7FF3D2
square
#987FF3 #F37FA0 #DAF37F #7FF3D2
split-complementary
#987FF3 #F3D27F #A0F37F
monochromatic
#4115E2 #6B47EE #987FF3 #C5B7F8 #E8E3FC

Accessibility & contrast

On white

3.15
#987FF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#987FF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FF3
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FF3#FFFFFF#000000##000000
##987FF31.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5493F7
Deuteranopia (green-blind)
#568FF0
Tritanopia (blue-blind)
#8196AE
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987ff3;
/* rgb */ color: rgb(152, 127, 243);
/* oklch */ color: oklch(67.1% 0.167 291.1);
Tailwind
colors: {
  custom: {
    50: '#baa4f7',
    500: '#987ff3',
    950: '#000000',
  },
}
SCSS
$custom: #987ff3;
$custom-light: #baa4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#987ff3",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 243
  },
  "hsl": {
    "h": 252.931,
    "s": 82.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.67119,
    "c": 0.16718,
    "h": 291.1
  },
  "luminance": 0.28325
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987FF3

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

Preview Lab → · Contrast checker → · Palette generator →

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