#987DBA#987DBA

#987DBA is a light, moderate violet. Relative luminance 0.249; OKLCH L 63.8% C 0.094 H 304.2°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#987DBA
RGBrgb(152, 125, 186)
HSLhsl(267, 31%, 61%)
HSVhsv(267, 33%, 73%)
CMYKcmyk(18.3%, 32.8%, 0%, 27.1%)
CIE-LABlab(56.97, 22.65, -28.20)
CIE-LCHlch(56.97, 36.17, 308.77°)
OKLaboklab(63.79% 0.0528 -0.0777)
OKLCHoklch(63.79% 0.094 304.2)
XYZxyz(29.1436, 24.8879, 49.7133)
Luminance0.2489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#987DBA #9FBA7D
analogous
#7D80BA #987DBA #B67DBA
triadic
#987DBA #BA987D #7DBA98
tetradic
#987DBA #BA7D80 #9FBA7D #7DBAB6
square
#987DBA #BA7D80 #9FBA7D #7DBAB6
split-complementary
#987DBA #BAB67D #80BA7D
monochromatic
#5B417B #7957A3 #987DBA #B8A5CF #D7CDE4

Accessibility & contrast

On white

3.51
#987DBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#987DBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #987DBA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##987DBA#FFFFFF#000000##000000
##987DBA1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7088BC
Deuteranopia (green-blind)
#7689B8
Tritanopia (blue-blind)
#938693
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #987dba;
/* rgb */ color: rgb(152, 125, 186);
/* oklch */ color: oklch(63.8% 0.094 304.2);
Tailwind
colors: {
  custom: {
    50: '#b7a3cf',
    500: '#987dba',
    950: '#000000',
  },
}
SCSS
$custom: #987dba;
$custom-light: #b7a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#987dba",
  "rgb": {
    "r": 152,
    "g": 125,
    "b": 186
  },
  "hsl": {
    "h": 266.557,
    "s": 30.653,
    "l": 60.98
  },
  "oklch": {
    "l": 0.63793,
    "c": 0.09397,
    "h": 304.2
  },
  "luminance": 0.24888
}

Semantic roles & 50–950 ramp

primary
#987DBA
secondary
#CBD5BE
accent
#A93C79
background
#FBFAFC
surface
#F6F3F9
border
#D0CDD2
text
#110F13
muted
#807F82

Preview Lab

Preview with #987DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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