#981B8F#981B8F

#981B8F is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.2% C 0.199 H 331.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#981B8F
RGBrgb(152, 27, 143)
HSLhsl(304, 70%, 35%)
HSVhsv(304, 82%, 60%)
CMYKcmyk(0%, 82.2%, 5.9%, 40.4%)
CIE-LABlab(36.83, 61.02, -34.32)
CIE-LCHlch(36.83, 70.01, 330.64°)
OKLaboklab(48.19% 0.1746 -0.0947)
OKLCHoklch(48.19% 0.199 331.5)
XYZxyz(18.2988, 9.4440, 26.8404)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B8F #1B9824
analogous
#621B98 #981B8F #981B50
triadic
#981B8F #8F981B #1B8F98
tetradic
#981B8F #98621B #1B9824 #1B5098
square
#981B8F #98621B #1B9824 #1B5098
split-complementary
#981B8F #50981B #1B9862
monochromatic
#30092D #64125E #981B8F #CC24C0 #E04ED5

Accessibility & contrast

On white

7.27
#981B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#981B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B8F
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B8F#FFFFFF#000000##FFFFFF
##981B8F1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4C92
Deuteranopia (green-blind)
#475D8C
Tritanopia (blue-blind)
#9E2D56
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981b8f;
/* rgb */ color: rgb(152, 27, 143);
/* oklch */ color: oklch(48.2% 0.199 331.5);
Tailwind
colors: {
  custom: {
    50: '#ba69b0',
    500: '#981b8f',
    950: '#000000',
  },
}
SCSS
$custom: #981b8f;
$custom-light: #ba69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#981b8f",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 304.32,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48189,
    "c": 0.19863,
    "h": 331.5
  },
  "luminance": 0.09442
}

Semantic roles & 50–950 ramp

primary
#981B8F
secondary
#4DC255
accent
#ED483B
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #981B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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