#987BFE#987BFE

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

Color values

HEX#987BFE
RGBrgb(152, 123, 254)
HSLhsl(253, 98%, 74%)
HSVhsv(253, 52%, 100%)
CMYKcmyk(40.2%, 51.6%, 0%, 0.4%)
CIE-LABlab(59.88, 40.98, -61.71)
CIE-LCHlch(59.88, 74.08, 303.59°)
OKLaboklab(67.1% 0.066 -0.1751)
OKLCHoklch(67.1% 0.187 290.7)
XYZxyz(37.9163, 27.9959, 97.1527)
Luminance0.2800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BFE #E1FE7B
analogous
#7BA0FE #987BFE #D97BFE
triadic
#987BFE #FE987B #7BFE98
tetradic
#987BFE #FE7BA0 #E1FE7B #7BFED9
square
#987BFE #FE7BA0 #E1FE7B #7BFED9
split-complementary
#987BFE #FED97B #A0FE7B
monochromatic
#3902FD #693EFE #987BFE #C7B8FE #E7E1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##987BFE#FFFFFF#000000##000000
##987BFE1.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)
#4193FF
Deuteranopia (green-blind)
#458DFB
Tritanopia (blue-blind)
#7C96B1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #987bfe;
/* rgb */ color: rgb(152, 123, 254);
/* oklch */ color: oklch(67.1% 0.187 290.7);
Tailwind
colors: {
  custom: {
    50: '#bba2ff',
    500: '#987bfe',
    950: '#000000',
  },
}
SCSS
$custom: #987bfe;
$custom-light: #bba2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#987bfe",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 254
  },
  "hsl": {
    "h": 253.282,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67097,
    "c": 0.18715,
    "h": 290.7
  },
  "luminance": 0.27997
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #987BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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