#981B8A#981B8A

#981B8A is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.195 H 333.5°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#981B8A
RGBrgb(152, 27, 138)
HSLhsl(307, 70%, 35%)
HSVhsv(307, 82%, 60%)
CMYKcmyk(0%, 82.2%, 9.2%, 40.4%)
CIE-LABlab(36.55, 60.25, -31.69)
CIE-LCHlch(36.55, 68.08, 332.26°)
OKLaboklab(47.9% 0.1746 -0.087)
OKLCHoklch(47.9% 0.195 333.5)
XYZxyz(17.9284, 9.2958, 24.8899)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B8A #1B9829
analogous
#671B98 #981B8A #981B4B
triadic
#981B8A #8A981B #1B8A98
tetradic
#981B8A #98671B #1B9829 #1B4B98
square
#981B8A #98671B #1B9829 #1B4B98
split-complementary
#981B8A #4B981B #1B9867
monochromatic
#30092C #64125B #981B8A #CC24B9 #E04ECF

Accessibility & contrast

On white

7.35
#981B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#981B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B8A
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B8A#FFFFFF#000000##FFFFFF
##981B8A1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8D
Deuteranopia (green-blind)
#495C87
Tritanopia (blue-blind)
#9F2A53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981b8a;
/* rgb */ color: rgb(152, 27, 138);
/* oklch */ color: oklch(47.9% 0.195 333.5);
Tailwind
colors: {
  custom: {
    50: '#ba69ac',
    500: '#981b8a',
    950: '#000000',
  },
}
SCSS
$custom: #981b8a;
$custom-light: #ba69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#981b8a",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 306.72,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47902,
    "c": 0.19506,
    "h": 333.5
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#981B8A
secondary
#4DC25A
accent
#ED4F3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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