#987CF2#987CF2

#987CF2 is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.5% C 0.170 H 292.1°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#987CF2
RGBrgb(152, 124, 242)
HSLhsl(254, 82%, 72%)
HSVhsv(254, 49%, 95%)
CMYKcmyk(37.2%, 48.8%, 0%, 5.1%)
CIE-LABlab(59.43, 37.21, -55.80)
CIE-LCHlch(59.43, 67.07, 303.70°)
OKLaboklab(66.54% 0.0639 -0.1578)
OKLCHoklch(66.54% 0.17 292.1)
XYZxyz(36.1793, 27.5006, 87.3891)
Luminance0.2750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CF2 #D6F27C
analogous
#7C9BF2 #987CF2 #D37CF2
triadic
#987CF2 #F2987C #7CF298
tetradic
#987CF2 #F27C9B #D6F27C #7CF2D3
square
#987CF2 #F27C9B #D6F27C #7CF2D3
split-complementary
#987CF2 #F2D37C #9BF27C
monochromatic
#4516DE #6C44EC #987CF2 #C4B4F8 #E9E3FC

Accessibility & contrast

On white

3.23
#987CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#987CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CF2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CF2#FFFFFF#000000##000000
##987CF21.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F91F6
Deuteranopia (green-blind)
#538DEF
Tritanopia (blue-blind)
#8194AC
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #987cf2;
/* rgb */ color: rgb(152, 124, 242);
/* oklch */ color: oklch(66.5% 0.170 292.1);
Tailwind
colors: {
  custom: {
    50: '#baa2f7',
    500: '#987cf2',
    950: '#000000',
  },
}
SCSS
$custom: #987cf2;
$custom-light: #baa2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#987cf2",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 254.237,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66543,
    "c": 0.17025,
    "h": 292.1
  },
  "luminance": 0.27502
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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