#987FCA#987FCA

#987FCA is a light, moderate violet. Relative luminance 0.261; OKLCH L 64.9% C 0.112 H 298.6°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#987FCA
RGBrgb(152, 127, 202)
HSLhsl(260, 41%, 65%)
HSVhsv(260, 37%, 79%)
CMYKcmyk(24.8%, 37.1%, 0%, 20.8%)
CIE-LABlab(58.15, 25.29, -35.45)
CIE-LCHlch(58.15, 43.55, 305.50°)
OKLaboklab(64.92% 0.0537 -0.0986)
OKLCHoklch(64.92% 0.112 298.6)
XYZxyz(31.1965, 26.1182, 59.2634)
Luminance0.2612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987FCA #B1CA7F
analogous
#7F8CCA #987FCA #BE7FCA
triadic
#987FCA #CA987F #7FCA98
tetradic
#987FCA #CA7F8C #B1CA7F #7FCABE
square
#987FCA #CA7F8C #B1CA7F #7FCABE
split-complementary
#987FCA #CABE7F #8CCA7F
monochromatic
#593C92 #7554B8 #987FCA #BBAADC #DED6EE

Accessibility & contrast

On white

3.37
#987FCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#987FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987FCA
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987FCA#FFFFFF#000000##000000
##987FCA1.003.376.226.22
#FFFFFF3.371.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCD
Deuteranopia (green-blind)
#708BC8
Tritanopia (blue-blind)
#8E8B9B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #987fca;
/* rgb */ color: rgb(152, 127, 202);
/* oklch */ color: oklch(64.9% 0.112 298.6);
Tailwind
colors: {
  custom: {
    50: '#b8a4da',
    500: '#987fca',
    950: '#000000',
  },
}
SCSS
$custom: #987fca;
$custom-light: #b8a4da;
$custom-dark: #000000;
JSON
{
  "hex": "#987fca",
  "rgb": {
    "r": 152,
    "g": 127,
    "b": 202
  },
  "hsl": {
    "h": 260,
    "s": 41.436,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64922,
    "c": 0.11224,
    "h": 298.6
  },
  "luminance": 0.26118
}

Semantic roles & 50–950 ramp

primary
#987FCA
secondary
#D7DFC5
accent
#B43189
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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