#981D87#981D87

#981D87 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.191 H 334.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#981D87
RGBrgb(152, 29, 135)
HSLhsl(308, 68%, 35%)
HSVhsv(308, 81%, 60%)
CMYKcmyk(0%, 80.9%, 11.2%, 40.4%)
CIE-LABlab(36.56, 59.29, -29.81)
CIE-LCHlch(36.56, 66.36, 333.31°)
OKLaboklab(47.86% 0.1729 -0.0816)
OKLCHoklch(47.86% 0.191 334.7)
XYZxyz(17.7617, 9.3050, 23.7776)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D87 #1D982E
analogous
#6C1D98 #981D87 #981D49
triadic
#981D87 #87981D #1D8798
tetradic
#981D87 #986C1D #1D982E #1D4998
square
#981D87 #986C1D #1D982E #1D4998
split-complementary
#981D87 #49981D #1D986C
monochromatic
#31092C #651359 #981D87 #CB27B5 #DE52CA

Accessibility & contrast

On white

7.34
#981D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#981D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981D87
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D87#FFFFFF#000000##FFFFFF
##981D871.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8A
Deuteranopia (green-blind)
#4B5C84
Tritanopia (blue-blind)
#A02952
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981d87;
/* rgb */ color: rgb(152, 29, 135);
/* oklch */ color: oklch(47.9% 0.191 334.7);
Tailwind
colors: {
  custom: {
    50: '#ba69aa',
    500: '#981d87',
    950: '#000000',
  },
}
SCSS
$custom: #981d87;
$custom-light: #ba69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#981d87",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 308.293,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47862,
    "c": 0.19124,
    "h": 334.7
  },
  "luminance": 0.09303
}

Semantic roles & 50–950 ramp

primary
#981D87
secondary
#50C160
accent
#EB553D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981D87

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

Preview Lab → · Contrast checker → · Palette generator →

#981D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva