#987CFC#987CFC

#987CFC is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.1% C 0.183 H 290.7°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#987CFC
RGBrgb(152, 124, 252)
HSLhsl(253, 96%, 74%)
HSVhsv(253, 51%, 99%)
CMYKcmyk(39.7%, 50.8%, 0%, 1.2%)
CIE-LABlab(60.00, 39.88, -60.43)
CIE-LCHlch(60.00, 72.40, 303.42°)
OKLaboklab(67.14% 0.0647 -0.1714)
OKLCHoklch(67.14% 0.183 290.7)
XYZxyz(37.7224, 28.1179, 95.5164)
Luminance0.2812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CFC #E0FC7C
analogous
#7CA0FC #987CFC #D87CFC
triadic
#987CFC #FC987C #7CFC98
tetradic
#987CFC #FC7CA0 #E0FC7C #7CFCD8
square
#987CFC #FC7CA0 #E0FC7C #7CFCD8
split-complementary
#987CFC #FCD87C #A0FC7C
monochromatic
#3B06F8 #6940FB #987CFC #C7B8FD #E7E1FE

Accessibility & contrast

On white

3.17
#987CFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#987CFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CFC
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CFC#FFFFFF#000000##000000
##987CFC1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4693FF
Deuteranopia (green-blind)
#498EF9
Tritanopia (blue-blind)
#7D96B0
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #987cfc;
/* rgb */ color: rgb(152, 124, 252);
/* oklch */ color: oklch(67.1% 0.183 290.7);
Tailwind
colors: {
  custom: {
    50: '#bba2fe',
    500: '#987cfc',
    950: '#000000',
  },
}
SCSS
$custom: #987cfc;
$custom-light: #bba2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#987cfc",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 252
  },
  "hsl": {
    "h": 253.125,
    "s": 95.522,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67142,
    "c": 0.18318,
    "h": 290.7
  },
  "luminance": 0.28119
}

Semantic roles & 50–950 ramp

primary
#987CFC
secondary
#EFF7D4
accent
#E600B3
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F18
muted
#817F86

Preview Lab

Preview with #987CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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