#987BCA#987BCA

#987BCA is a light, moderate violet. Relative luminance 0.251; OKLCH L 64.2% C 0.119 H 300.0°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#987BCA
RGBrgb(152, 123, 202)
HSLhsl(262, 43%, 64%)
HSVhsv(262, 39%, 79%)
CMYKcmyk(24.8%, 39.1%, 0%, 20.8%)
CIE-LABlab(57.18, 27.60, -36.97)
CIE-LCHlch(57.18, 46.14, 306.74°)
OKLaboklab(64.18% 0.0594 -0.1029)
OKLCHoklch(64.18% 0.119 300)
XYZxyz(30.6901, 25.1055, 59.0946)
Luminance0.2511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987BCA #ADCA7B
analogous
#7B85CA #987BCA #BF7BCA
triadic
#987BCA #CA987B #7BCA98
tetradic
#987BCA #CA7B85 #ADCA7B #7BCABF
square
#987BCA #CA7B85 #ADCA7B #7BCABF
split-complementary
#987BCA #CABF7B #85CA7B
monochromatic
#5A3A91 #764FB8 #987BCA #BAA7DC #DCD2ED

Accessibility & contrast

On white

3.49
#987BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#987BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987BCA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987BCA#FFFFFF#000000##000000
##987BCA1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6789CD
Deuteranopia (green-blind)
#6C89C8
Tritanopia (blue-blind)
#8F8899
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987bca;
/* rgb */ color: rgb(152, 123, 202);
/* oklch */ color: oklch(64.2% 0.119 300.0);
Tailwind
colors: {
  custom: {
    50: '#b8a1da',
    500: '#987bca',
    950: '#000000',
  },
}
SCSS
$custom: #987bca;
$custom-light: #b8a1da;
$custom-dark: #000000;
JSON
{
  "hex": "#987bca",
  "rgb": {
    "r": 152,
    "g": 123,
    "b": 202
  },
  "hsl": {
    "h": 262.025,
    "s": 42.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64184,
    "c": 0.11884,
    "h": 300
  },
  "luminance": 0.25106
}

Semantic roles & 50–950 ramp

primary
#987BCA
secondary
#D4DEC2
accent
#B63085
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #987BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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