#987FDD#987FDD

#987FDD is a light, vivid violet. Relative luminance 0.271; OKLCH L 65.9% C 0.138 H 294.6°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#987FDD
RGBrgb(152, 127, 221)
HSLhsl(256, 58%, 68%)
HSVhsv(256, 43%, 87%)
CMYKcmyk(31.2%, 42.5%, 0%, 13.3%)
CIE-LABlab(59.04, 30.03, -44.74)
CIE-LCHlch(59.04, 53.88, 303.87°)
OKLaboklab(65.89% 0.0573 -0.1255)
OKLCHoklch(65.89% 0.138 294.6)
XYZxyz(33.5862, 27.0741, 71.8489)
Luminance0.2707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FDD #C4DD7F
analogous
#7F95DD #987FDD #C77FDD
triadic
#987FDD #DD987F #7FDD98
tetradic
#987FDD #DD7F95 #C4DD7F #7FDDC7
square
#987FDD #DD7F95 #C4DD7F #7FDDC7
split-complementary
#987FDD #DDC77F #95DD7F
monochromatic
#522FB2 #714FD0 #987FDD #BFAFEA #E6E0F7

Accessibility & contrast

On white

3.27
#987FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#987FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FDD
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FDD#FFFFFF#000000##000000
##987FDD1.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#628FE1
Deuteranopia (green-blind)
#668DDB
Tritanopia (blue-blind)
#8990A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987fdd;
/* rgb */ color: rgb(152, 127, 221);
/* oklch */ color: oklch(65.9% 0.138 294.6);
Tailwind
colors: {
  custom: {
    50: '#b9a4e8',
    500: '#987fdd',
    950: '#000000',
  },
}
SCSS
$custom: #987fdd;
$custom-light: #b9a4e8;
$custom-dark: #000000;
JSON
{
  "hex": "#987fdd",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 221
  },
  "hsl": {
    "h": 255.957,
    "s": 58.025,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65893,
    "c": 0.13795,
    "h": 294.6
  },
  "luminance": 0.27075
}

Semantic roles & 50–950 ramp

primary
#987FDD
secondary
#E3EACE
accent
#C6209A
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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