#981C87#981C87

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

Color values

HEX#981C87
RGBrgb(152, 28, 135)
HSLhsl(308, 69%, 35%)
HSVhsv(308, 82%, 60%)
CMYKcmyk(0%, 81.6%, 11.2%, 40.4%)
CIE-LABlab(36.47, 59.55, -29.95)
CIE-LCHlch(36.47, 66.66, 333.30°)
OKLaboklab(47.8% 0.1737 -0.082)
OKLCHoklch(47.8% 0.192 334.7)
XYZxyz(17.7376, 9.2568, 23.7695)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C87 #1C982D
analogous
#6B1C98 #981C87 #981C49
triadic
#981C87 #87981C #1C8798
tetradic
#981C87 #986B1C #1C982D #1C4998
square
#981C87 #986B1C #1C982D #1C4998
split-complementary
#981C87 #49981C #1C986B
monochromatic
#31092B #641259 #981C87 #CC26B5 #DF50CB

Accessibility & contrast

On white

7.37
#981C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#981C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981C87
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C87#FFFFFF#000000##FFFFFF
##981C871.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #981c87;
/* rgb */ color: rgb(152, 28, 135);
/* oklch */ color: oklch(47.8% 0.192 334.7);
Tailwind
colors: {
  custom: {
    50: '#ba69aa',
    500: '#981c87',
    950: '#000000',
  },
}
SCSS
$custom: #981c87;
$custom-light: #ba69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#981c87",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 308.226,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47797,
    "c": 0.19211,
    "h": 334.7
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#981C87
secondary
#4EC15E
accent
#EC543C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981C87

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

Preview Lab → · Contrast checker → · Palette generator →

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