#987FD2#987FD2

#987FD2 is a light, vivid violet. Relative luminance 0.265; OKLCH L 65.3% C 0.123 H 296.7°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#987FD2
RGBrgb(152, 127, 210)
HSLhsl(258, 48%, 66%)
HSVhsv(258, 40%, 82%)
CMYKcmyk(27.6%, 39.5%, 0%, 17.6%)
CIE-LABlab(58.52, 27.26, -39.39)
CIE-LCHlch(58.52, 47.90, 304.68°)
OKLaboklab(65.32% 0.0554 -0.11)
OKLCHoklch(65.32% 0.123 296.7)
XYZxyz(32.1684, 26.5070, 64.3819)
Luminance0.2651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FD2 #B9D27F
analogous
#7F8FD2 #987FD2 #C17FD2
triadic
#987FD2 #D2987F #7FD298
tetradic
#987FD2 #D27F8F #B9D27F #7FD2C1
square
#987FD2 #D27F8F #B9D27F #7FD2C1
split-complementary
#987FD2 #D2C17F #8FD27F
monochromatic
#57389F #7452C2 #987FD2 #BCACE2 #E1DAF2

Accessibility & contrast

On white

3.33
#987FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#987FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FD2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FD2#FFFFFF#000000##000000
##987FD21.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#688DD5
Deuteranopia (green-blind)
#6C8CD0
Tritanopia (blue-blind)
#8C8D9E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #987fd2;
/* rgb */ color: rgb(152, 127, 210);
/* oklch */ color: oklch(65.3% 0.123 296.7);
Tailwind
colors: {
  custom: {
    50: '#b8a4e0',
    500: '#987fd2',
    950: '#000000',
  },
}
SCSS
$custom: #987fd2;
$custom-light: #b8a4e0;
$custom-dark: #000000;
JSON
{
  "hex": "#987fd2",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 210
  },
  "hsl": {
    "h": 258.072,
    "s": 47.977,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6532,
    "c": 0.1231,
    "h": 296.7
  },
  "luminance": 0.26507
}

Semantic roles & 50–950 ramp

primary
#987FD2
secondary
#DCE4C9
accent
#BB2A90
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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