#987FDF#987FDF

#987FDF is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.0% C 0.141 H 294.2°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#987FDF
RGBrgb(152, 127, 223)
HSLhsl(256, 60%, 69%)
HSVhsv(256, 43%, 87%)
CMYKcmyk(31.8%, 43%, 0%, 12.5%)
CIE-LABlab(59.14, 30.54, -45.70)
CIE-LCHlch(59.14, 54.96, 303.76°)
OKLaboklab(66% 0.0577 -0.1283)
OKLCHoklch(66% 0.141 294.2)
XYZxyz(33.8542, 27.1813, 73.2606)
Luminance0.2718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FDF #C6DF7F
analogous
#7F96DF #987FDF #C87FDF
triadic
#987FDF #DF987F #7FDF98
tetradic
#987FDF #DF7F96 #C6DF7F #7FDFC8
square
#987FDF #DF7F96 #C6DF7F #7FDFC8
split-complementary
#987FDF #DFC87F #96DF7F
monochromatic
#512EB6 #714ED3 #987FDF #BFB0EB #E7E1F7

Accessibility & contrast

On white

3.26
#987FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#987FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FDF
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FDF#FFFFFF#000000##000000
##987FDF1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#618FE3
Deuteranopia (green-blind)
#658DDD
Tritanopia (blue-blind)
#8891A4
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987fdf;
/* rgb */ color: rgb(152, 127, 223);
/* oklch */ color: oklch(66.0% 0.141 294.2);
Tailwind
colors: {
  custom: {
    50: '#b9a4e9',
    500: '#987fdf',
    950: '#000000',
  },
}
SCSS
$custom: #987fdf;
$custom-light: #b9a4e9;
$custom-dark: #000000;
JSON
{
  "hex": "#987fdf",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 223
  },
  "hsl": {
    "h": 255.625,
    "s": 60,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66,
    "c": 0.14064,
    "h": 294.2
  },
  "luminance": 0.27182
}

Semantic roles & 50–950 ramp

primary
#987FDF
secondary
#E4EBCF
accent
#C81E9B
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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