#981F87#981F87

#981F87 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.189 H 334.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#981F87
RGBrgb(152, 31, 135)
HSLhsl(308, 66%, 36%)
HSVhsv(308, 80%, 60%)
CMYKcmyk(0%, 79.6%, 11.2%, 40.4%)
CIE-LABlab(36.76, 58.74, -29.51)
CIE-LCHlch(36.76, 65.73, 333.32°)
OKLaboklab(48% 0.1713 -0.0808)
OKLCHoklch(48% 0.189 334.7)
XYZxyz(17.8123, 9.4063, 23.7945)
Luminance0.0940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F87 #1F9830
analogous
#6C1F98 #981F87 #981F4A
triadic
#981F87 #87981F #1F8798
tetradic
#981F87 #986C1F #1F9830 #1F4A98
square
#981F87 #986C1F #1F9830 #1F4A98
split-complementary
#981F87 #4A981F #1F986C
monochromatic
#320A2D #65155A #981F87 #CB29B4 #DC55C9

Accessibility & contrast

On white

7.29
#981F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#981F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F87
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F87#FFFFFF#000000##FFFFFF
##981F871.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B8A
Deuteranopia (green-blind)
#4C5D84
Tritanopia (blue-blind)
#A02B52
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981f87;
/* rgb */ color: rgb(152, 31, 135);
/* oklch */ color: oklch(48.0% 0.189 334.7);
Tailwind
colors: {
  custom: {
    50: '#ba6aaa',
    500: '#981f87',
    950: '#000000',
  },
}
SCSS
$custom: #981f87;
$custom-light: #ba6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#981f87",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 308.43,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47998,
    "c": 0.18941,
    "h": 334.7
  },
  "luminance": 0.09405
}

Semantic roles & 50–950 ramp

primary
#981F87
secondary
#53C062
accent
#E9573F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981F87

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

Preview Lab → · Contrast checker → · Palette generator →

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