#987CFA#987CFA

#987CFA is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.0% C 0.181 H 290.9°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#987CFA
RGBrgb(152, 124, 250)
HSLhsl(253, 93%, 73%)
HSVhsv(253, 50%, 98%)
CMYKcmyk(39.2%, 50.4%, 0%, 2%)
CIE-LABlab(59.88, 39.34, -59.51)
CIE-LCHlch(59.88, 71.34, 303.47°)
OKLaboklab(67.02% 0.0646 -0.1687)
OKLCHoklch(67.02% 0.181 290.9)
XYZxyz(37.4072, 27.9918, 93.8560)
Luminance0.2799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CFA #DEFA7C
analogous
#7C9FFA #987CFA #D77CFA
triadic
#987CFA #FA987C #7CFA98
tetradic
#987CFA #FA7C9F #DEFA7C #7CFAD7
square
#987CFA #FA7C9F #DEFA7C #7CFAD7
split-complementary
#987CFA #FAD77C #9FFA7C
monochromatic
#3D09F2 #6A41F8 #987CFA #C6B7FC #E8E2FE

Accessibility & contrast

On white

3.18
#987CFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#987CFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CFA
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CFA#FFFFFF#000000##000000
##987CFA1.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4892FE
Deuteranopia (green-blind)
#4B8EF7
Tritanopia (blue-blind)
#7E96AF
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987cfa;
/* rgb */ color: rgb(152, 124, 250);
/* oklch */ color: oklch(67.0% 0.181 290.9);
Tailwind
colors: {
  custom: {
    50: '#bba2fd',
    500: '#987cfa',
    950: '#000000',
  },
}
SCSS
$custom: #987cfa;
$custom-light: #bba2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#987cfa",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 250
  },
  "hsl": {
    "h": 253.333,
    "s": 92.647,
    "l": 73.333
  },
  "oklch": {
    "l": 0.67021,
    "c": 0.18061,
    "h": 290.9
  },
  "luminance": 0.27993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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