#981987#981987

#981987 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.195 H 334.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#981987
RGBrgb(152, 25, 135)
HSLhsl(308, 72%, 35%)
HSVhsv(308, 84%, 60%)
CMYKcmyk(0%, 83.6%, 11.2%, 40.4%)
CIE-LABlab(36.22, 60.29, -30.36)
CIE-LCHlch(36.22, 67.50, 333.27°)
OKLaboklab(47.61% 0.1759 -0.0832)
OKLCHoklch(47.61% 0.195 334.7)
XYZxyz(17.6699, 9.1216, 23.7470)
Luminance0.0912 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981987 #19982A
analogous
#691998 #981987 #981948
triadic
#981987 #879819 #198798
tetradic
#981987 #986919 #19982A #194898
square
#981987 #986919 #19982A #194898
split-complementary
#981987 #489819 #199869
monochromatic
#2F082A #631058 #981987 #CD22B6 #E14ACD

Accessibility & contrast

On white

7.44
#981987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#981987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981987
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981987#FFFFFF#000000##FFFFFF
##9819871.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8A
Deuteranopia (green-blind)
#4A5C84
Tritanopia (blue-blind)
#A02751
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #981987;
/* rgb */ color: rgb(152, 25, 135);
/* oklch */ color: oklch(47.6% 0.195 334.7);
Tailwind
colors: {
  custom: {
    50: '#ba68aa',
    500: '#981987',
    950: '#000000',
  },
}
SCSS
$custom: #981987;
$custom-light: #ba68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#981987",
  "rgb": {
    "r": 152,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 308.031,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47613,
    "c": 0.19459,
    "h": 334.7
  },
  "luminance": 0.0912
}

Semantic roles & 50–950 ramp

primary
#981987
secondary
#4AC35A
accent
#EE5239
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981987

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

Preview Lab → · Contrast checker → · Palette generator →

#981987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva