#981C8D#981C8D

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

Color values

HEX#981C8D
RGBrgb(152, 28, 141)
HSLhsl(305, 69%, 35%)
HSVhsv(305, 82%, 60%)
CMYKcmyk(0%, 81.6%, 7.2%, 40.4%)
CIE-LABlab(36.80, 60.45, -33.14)
CIE-LCHlch(36.80, 68.94, 331.27°)
OKLaboklab(48.14% 0.1739 -0.0912)
OKLCHoklch(48.14% 0.196 332.3)
XYZxyz(18.1719, 9.4306, 26.0574)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C8D #1C9827
analogous
#651C98 #981C8D #981C4F
triadic
#981C8D #8D981C #1C8D98
tetradic
#981C8D #98651C #1C9827 #1C4F98
square
#981C8D #98651C #1C9827 #1C4F98
split-complementary
#981C8D #4F981C #1C9865
monochromatic
#31092D #64125D #981C8D #CC26BD #DF50D2

Accessibility & contrast

On white

7.28
#981C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981C8D
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C8D#FFFFFF#000000##FFFFFF
##981C8D1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#485D8A
Tritanopia (blue-blind)
#9F2C55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981c8d;
/* rgb */ color: rgb(152, 28, 141);
/* oklch */ color: oklch(48.1% 0.196 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba69af',
    500: '#981c8d',
    950: '#000000',
  },
}
SCSS
$custom: #981c8d;
$custom-light: #ba69af;
$custom-dark: #000000;
JSON
{
  "hex": "#981c8d",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 305.323,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48135,
    "c": 0.19636,
    "h": 332.3
  },
  "luminance": 0.09429
}

Semantic roles & 50–950 ramp

primary
#981C8D
secondary
#4EC159
accent
#EC4C3C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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