#987CCF#987CCF

#987CCF is a light, vivid violet. Relative luminance 0.256; OKLCH L 64.6% C 0.124 H 298.4°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#987CCF
RGBrgb(152, 124, 207)
HSLhsl(260, 46%, 65%)
HSVhsv(260, 40%, 81%)
CMYKcmyk(26.6%, 40.1%, 0%, 18.8%)
CIE-LABlab(57.65, 28.25, -39.06)
CIE-LCHlch(57.65, 48.20, 305.87°)
OKLaboklab(64.62% 0.059 -0.109)
OKLCHoklch(64.62% 0.124 298.4)
XYZxyz(31.4164, 25.5955, 62.3047)
Luminance0.2560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987CCF #B3CF7C
analogous
#7C89CF #987CCF #C27CCF
triadic
#987CCF #CF987C #7CCF98
tetradic
#987CCF #CF7C89 #B3CF7C #7CCFC2
square
#987CCF #CF7C89 #B3CF7C #7CCFC2
split-complementary
#987CCF #CFC27C #89CF7C
monochromatic
#593899 #754FBF #987CCF #BBA9DF #DED6F0

Accessibility & contrast

On white

3.43
#987CCF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#987CCF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987CCF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987CCF#FFFFFF#000000##000000
##987CCF1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#668BD2
Deuteranopia (green-blind)
#6B8ACD
Tritanopia (blue-blind)
#8D8A9C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #987ccf;
/* rgb */ color: rgb(152, 124, 207);
/* oklch */ color: oklch(64.6% 0.124 298.4);
Tailwind
colors: {
  custom: {
    50: '#b8a2de',
    500: '#987ccf',
    950: '#000000',
  },
}
SCSS
$custom: #987ccf;
$custom-light: #b8a2de;
$custom-dark: #000000;
JSON
{
  "hex": "#987ccf",
  "rgb": {
    "r": 152,
    "g": 124,
    "b": 207
  },
  "hsl": {
    "h": 260.241,
    "s": 46.369,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64619,
    "c": 0.12391,
    "h": 298.4
  },
  "luminance": 0.25596
}

Semantic roles & 50–950 ramp

primary
#987CCF
secondary
#D8E2C5
accent
#BA2C8A
background
#FBFAFD
surface
#F6F3FB
border
#D0CDD4
text
#110F15
muted
#807F83

Preview Lab

Preview with #987CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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