#981B87#981B87

#981B87 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.193 H 334.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#981B87
RGBrgb(152, 27, 135)
HSLhsl(308, 70%, 35%)
HSVhsv(308, 82%, 60%)
CMYKcmyk(0%, 82.2%, 11.2%, 40.4%)
CIE-LABlab(36.39, 59.80, -30.09)
CIE-LCHlch(36.39, 66.95, 333.29°)
OKLaboklab(47.73% 0.1745 -0.0824)
OKLCHoklch(47.73% 0.193 334.7)
XYZxyz(17.7142, 9.2102, 23.7618)
Luminance0.0921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B87 #1B982C
analogous
#6A1B98 #981B87 #981B49
triadic
#981B87 #87981B #1B8798
tetradic
#981B87 #986A1B #1B982C #1B4998
square
#981B87 #986A1B #1B982C #1B4998
split-complementary
#981B87 #49981B #1B986A
monochromatic
#30092B #641259 #981B87 #CC24B5 #E04ECC

Accessibility & contrast

On white

7.39
#981B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#981B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B87
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B87#FFFFFF#000000##FFFFFF
##981B871.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194A8A
Deuteranopia (green-blind)
#4B5C84
Tritanopia (blue-blind)
#A02851
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981b87;
/* rgb */ color: rgb(152, 27, 135);
/* oklch */ color: oklch(47.7% 0.193 334.7);
Tailwind
colors: {
  custom: {
    50: '#ba69aa',
    500: '#981b87',
    950: '#000000',
  },
}
SCSS
$custom: #981b87;
$custom-light: #ba69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#981b87",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 308.16,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47734,
    "c": 0.19296,
    "h": 334.7
  },
  "luminance": 0.09209
}

Semantic roles & 50–950 ramp

primary
#981B87
secondary
#4DC25D
accent
#ED533B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981B87

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

Preview Lab → · Contrast checker → · Palette generator →

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