#981B8D#981B8D

#981B8D is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.197 H 332.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#981B8D
RGBrgb(152, 27, 141)
HSLhsl(305, 70%, 35%)
HSVhsv(305, 82%, 60%)
CMYKcmyk(0%, 82.2%, 7.2%, 40.4%)
CIE-LABlab(36.71, 60.71, -33.27)
CIE-LCHlch(36.71, 69.23, 331.27°)
OKLaboklab(48.07% 0.1746 -0.0916)
OKLCHoklch(48.07% 0.197 332.3)
XYZxyz(18.1486, 9.3839, 26.0496)
Luminance0.0938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B8D #1B9826
analogous
#641B98 #981B8D #981B4E
triadic
#981B8D #8D981B #1B8D98
tetradic
#981B8D #98641B #1B9826 #1B4E98
square
#981B8D #98641B #1B9826 #1B4E98
split-complementary
#981B8D #4E981B #1B9864
monochromatic
#30092D #64125D #981B8D #CC24BD #E04ED3

Accessibility & contrast

On white

7.30
#981B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981B8D
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B8D#FFFFFF#000000##FFFFFF
##981B8D1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#485C8A
Tritanopia (blue-blind)
#9F2C55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981b8d;
/* rgb */ color: rgb(152, 27, 141);
/* oklch */ color: oklch(48.1% 0.197 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba69af',
    500: '#981b8d',
    950: '#000000',
  },
}
SCSS
$custom: #981b8d;
$custom-light: #ba69af;
$custom-dark: #000000;
JSON
{
  "hex": "#981b8d",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 305.28,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48073,
    "c": 0.19719,
    "h": 332.3
  },
  "luminance": 0.09382
}

Semantic roles & 50–950 ramp

primary
#981B8D
secondary
#4DC257
accent
#ED4B3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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