#987FDC#987FDC

#987FDC is a light, vivid violet. Relative luminance 0.270; OKLCH L 65.8% C 0.137 H 294.7°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#987FDC
RGBrgb(152, 127, 220)
HSLhsl(256, 57%, 68%)
HSVhsv(256, 42%, 86%)
CMYKcmyk(30.9%, 42.3%, 0%, 13.7%)
CIE-LABlab(58.99, 29.77, -44.25)
CIE-LCHlch(58.99, 53.34, 303.93°)
OKLaboklab(65.84% 0.0572 -0.1241)
OKLCHoklch(65.84% 0.137 294.7)
XYZxyz(33.4533, 27.0209, 71.1493)
Luminance0.2702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FDC #C3DC7F
analogous
#7F94DC #987FDC #C67FDC
triadic
#987FDC #DC987F #7FDC98
tetradic
#987FDC #DC7F94 #C3DC7F #7FDCC6
square
#987FDC #DC7F94 #C3DC7F #7FDCC6
split-complementary
#987FDC #DCC67F #94DC7F
monochromatic
#5330B0 #714FCF #987FDC #BFAFE9 #E5DFF6

Accessibility & contrast

On white

3.28
#987FDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#987FDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FDC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FDC#FFFFFF#000000##000000
##987FDC1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#638FDF
Deuteranopia (green-blind)
#678DDA
Tritanopia (blue-blind)
#8990A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987fdc;
/* rgb */ color: rgb(152, 127, 220);
/* oklch */ color: oklch(65.8% 0.137 294.7);
Tailwind
colors: {
  custom: {
    50: '#b9a4e7',
    500: '#987fdc',
    950: '#000000',
  },
}
SCSS
$custom: #987fdc;
$custom-light: #b9a4e7;
$custom-dark: #000000;
JSON
{
  "hex": "#987fdc",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 220
  },
  "hsl": {
    "h": 256.129,
    "s": 57.055,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65839,
    "c": 0.1366,
    "h": 294.7
  },
  "luminance": 0.27021
}

Semantic roles & 50–950 ramp

primary
#987FDC
secondary
#E2EACD
accent
#C52199
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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