#981D8F#981D8F

#981D8F is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.3% C 0.197 H 331.5°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#981D8F
RGBrgb(152, 29, 143)
HSLhsl(304, 68%, 35%)
HSVhsv(304, 81%, 60%)
CMYKcmyk(0%, 80.9%, 5.9%, 40.4%)
CIE-LABlab(37.00, 60.51, -34.05)
CIE-LCHlch(37.00, 69.43, 330.63°)
OKLaboklab(48.32% 0.1731 -0.0939)
OKLCHoklch(48.32% 0.197 331.5)
XYZxyz(18.3462, 9.5388, 26.8562)
Luminance0.0954 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D8F #1D9826
analogous
#631D98 #981D8F #981D52
triadic
#981D8F #8F981D #1D8F98
tetradic
#981D8F #98631D #1D9826 #1D5298
square
#981D8F #98631D #1D9826 #1D5298
split-complementary
#981D8F #52981D #1D9863
monochromatic
#31092E #65135F #981D8F #CB27BF #DE52D4

Accessibility & contrast

On white

7.22
#981D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#981D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981D8F
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D8F#FFFFFF#000000##FFFFFF
##981D8F1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #981d8f;
/* rgb */ color: rgb(152, 29, 143);
/* oklch */ color: oklch(48.3% 0.197 331.5);
Tailwind
colors: {
  custom: {
    50: '#ba6ab0',
    500: '#981d8f',
    950: '#000000',
  },
}
SCSS
$custom: #981d8f;
$custom-light: #ba6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#981d8f",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 304.39,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48315,
    "c": 0.19695,
    "h": 331.5
  },
  "luminance": 0.09537
}

Semantic roles & 50–950 ramp

primary
#981D8F
secondary
#50C158
accent
#EB4A3D
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #981D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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