#987CF3#987CF3

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

Color values

HEX#987CF3
RGBrgb(152, 124, 243)
HSLhsl(254, 83%, 72%)
HSVhsv(254, 49%, 95%)
CMYKcmyk(37.4%, 49%, 0%, 4.7%)
CIE-LABlab(59.49, 37.48, -56.27)
CIE-LCHlch(59.49, 67.61, 303.66°)
OKLaboklab(66.6% 0.064 -0.1592)
OKLCHoklch(66.6% 0.172 291.9)
XYZxyz(36.3299, 27.5609, 88.1823)
Luminance0.2756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CF3 #D7F37C
analogous
#7C9BF3 #987CF3 #D47CF3
triadic
#987CF3 #F3987C #7CF398
tetradic
#987CF3 #F37C9B #D7F37C #7CF3D4
square
#987CF3 #F37C9B #D7F37C #7CF3D4
split-complementary
#987CF3 #F3D47C #9BF37C
monochromatic
#4415E0 #6C44EE #987CF3 #C4B4F8 #E9E3FC

Accessibility & contrast

On white

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

On black

6.51
#987CF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CF3
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CF3#FFFFFF#000000##000000
##987CF31.003.226.516.51
#FFFFFF3.221.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E91F7
Deuteranopia (green-blind)
#528DF0
Tritanopia (blue-blind)
#8194AC
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987cf3;
/* rgb */ color: rgb(152, 124, 243);
/* oklch */ color: oklch(66.6% 0.172 291.9);
Tailwind
colors: {
  custom: {
    50: '#baa2f8',
    500: '#987cf3',
    950: '#000000',
  },
}
SCSS
$custom: #987cf3;
$custom-light: #baa2f8;
$custom-dark: #000000;
JSON
{
  "hex": "#987cf3",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 243
  },
  "hsl": {
    "h": 254.118,
    "s": 83.217,
    "l": 71.961
  },
  "oklch": {
    "l": 0.66602,
    "c": 0.17156,
    "h": 291.9
  },
  "luminance": 0.27562
}

Semantic roles & 50–950 ramp

primary
#987CF3
secondary
#EDF4D6
accent
#E006AC
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85

Preview Lab

Preview with #987CF3

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

Preview Lab → · Contrast checker → · Palette generator →

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