#987FDB#987FDB

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

Color values

HEX#987FDB
RGBrgb(152, 127, 219)
HSLhsl(256, 56%, 68%)
HSVhsv(256, 42%, 86%)
CMYKcmyk(30.6%, 42%, 0%, 14.1%)
CIE-LABlab(58.94, 29.52, -43.77)
CIE-LCHlch(58.94, 52.80, 304.00°)
OKLaboklab(65.79% 0.057 -0.1227)
OKLCHoklch(65.79% 0.135 294.9)
XYZxyz(33.3213, 26.9681, 70.4539)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FDB #C2DB7F
analogous
#7F94DB #987FDB #C67FDB
triadic
#987FDB #DB987F #7FDB98
tetradic
#987FDB #DB7F94 #C2DB7F #7FDBC6
square
#987FDB #DB7F94 #C2DB7F #7FDBC6
split-complementary
#987FDB #DBC67F #94DB7F
monochromatic
#5331AF #724FCE #987FDB #BEAFE8 #E5DFF6

Accessibility & contrast

On white

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

On black

6.39
#987FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FDB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FDB#FFFFFF#000000##000000
##987FDB1.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#638FDE
Deuteranopia (green-blind)
#678CD9
Tritanopia (blue-blind)
#8990A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #987fdb;
/* rgb */ color: rgb(152, 127, 219);
/* oklch */ color: oklch(65.8% 0.135 294.9);
Tailwind
colors: {
  custom: {
    50: '#b8a4e6',
    500: '#987fdb',
    950: '#000000',
  },
}
SCSS
$custom: #987fdb;
$custom-light: #b8a4e6;
$custom-dark: #000000;
JSON
{
  "hex": "#987fdb",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 219
  },
  "hsl": {
    "h": 256.304,
    "s": 56.098,
    "l": 67.843
  },
  "oklch": {
    "l": 0.65786,
    "c": 0.13527,
    "h": 294.9
  },
  "luminance": 0.26969
}

Semantic roles & 50–950 ramp

primary
#987FDB
secondary
#E1E9CD
accent
#C42298
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#120F16
muted
#817F84

Preview Lab

Preview with #987FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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