#981D8A#981D8A

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

Color values

HEX#981D8A
RGBrgb(152, 29, 138)
HSLhsl(307, 68%, 35%)
HSVhsv(307, 81%, 60%)
CMYKcmyk(0%, 80.9%, 9.2%, 40.4%)
CIE-LABlab(36.73, 59.74, -31.41)
CIE-LCHlch(36.73, 67.49, 332.27°)
OKLaboklab(48.03% 0.1731 -0.0862)
OKLCHoklch(48.03% 0.193 333.5)
XYZxyz(17.9759, 9.3907, 24.9057)
Luminance0.0939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D8A #1D982B
analogous
#681D98 #981D8A #981D4D
triadic
#981D8A #8A981D #1D8A98
tetradic
#981D8A #98681D #1D982B #1D4D98
square
#981D8A #98681D #1D982B #1D4D98
split-complementary
#981D8A #4D981D #1D9868
monochromatic
#31092D #65135B #981D8A #CB27B9 #DE52CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981D8A#FFFFFF#000000##FFFFFF
##981D8A1.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)
#174B8D
Deuteranopia (green-blind)
#4A5D87
Tritanopia (blue-blind)
#9F2B53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981d8a;
/* rgb */ color: rgb(152, 29, 138);
/* oklch */ color: oklch(48.0% 0.193 333.5);
Tailwind
colors: {
  custom: {
    50: '#ba69ac',
    500: '#981d8a',
    950: '#000000',
  },
}
SCSS
$custom: #981d8a;
$custom-light: #ba69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#981d8a",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 306.829,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48029,
    "c": 0.19335,
    "h": 333.5
  },
  "luminance": 0.09389
}

Semantic roles & 50–950 ramp

primary
#981D8A
secondary
#50C15D
accent
#EB513D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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