#981C8B#981C8B

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

Color values

HEX#981C8B
RGBrgb(152, 28, 139)
HSLhsl(306, 69%, 35%)
HSVhsv(306, 82%, 60%)
CMYKcmyk(0%, 81.6%, 8.6%, 40.4%)
CIE-LABlab(36.69, 60.15, -32.08)
CIE-LCHlch(36.69, 68.17, 331.93°)
OKLaboklab(48.02% 0.1738 -0.0882)
OKLCHoklch(48.02% 0.195 333.1)
XYZxyz(18.0245, 9.3716, 25.2807)
Luminance0.0937 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C8B #1C9829
analogous
#671C98 #981C8B #981C4D
triadic
#981C8B #8B981C #1C8B98
tetradic
#981C8B #98671C #1C9829 #1C4D98
square
#981C8B #98671C #1C9829 #1C4D98
split-complementary
#981C8B #4D981C #1C9867
monochromatic
#31092C #64125C #981C8B #CC26BA #DF50D0

Accessibility & contrast

On white

7.31
#981C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#981C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981C8B
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C8B#FFFFFF#000000##FFFFFF
##981C8B1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#495C88
Tritanopia (blue-blind)
#9F2B54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981c8b;
/* rgb */ color: rgb(152, 28, 139);
/* oklch */ color: oklch(48.0% 0.195 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba69ad',
    500: '#981c8b',
    950: '#000000',
  },
}
SCSS
$custom: #981c8b;
$custom-light: #ba69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#981c8b",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 306.29,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48021,
    "c": 0.19493,
    "h": 333.1
  },
  "luminance": 0.0937
}

Semantic roles & 50–950 ramp

primary
#981C8B
secondary
#4EC15B
accent
#EC4E3C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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