#981C8C#981C8C

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

Color values

HEX#981C8C
RGBrgb(152, 28, 140)
HSLhsl(306, 69%, 35%)
HSVhsv(306, 82%, 60%)
CMYKcmyk(0%, 81.6%, 7.9%, 40.4%)
CIE-LABlab(36.74, 60.30, -32.61)
CIE-LCHlch(36.74, 68.55, 331.60°)
OKLaboklab(48.08% 0.1739 -0.0897)
OKLCHoklch(48.08% 0.196 332.7)
XYZxyz(18.0979, 9.4009, 25.6673)
Luminance0.0940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C8C #1C9828
analogous
#661C98 #981C8C #981C4E
triadic
#981C8C #8C981C #1C8C98
tetradic
#981C8C #98661C #1C9828 #1C4E98
square
#981C8C #98661C #1C9828 #1C4E98
split-complementary
#981C8C #4E981C #1C9866
monochromatic
#31092D #64125C #981C8C #CC26BC #DF50D1

Accessibility & contrast

On white

7.29
#981C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981C8C
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C8C#FFFFFF#000000##FFFFFF
##981C8C1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8F
Deuteranopia (green-blind)
#485C89
Tritanopia (blue-blind)
#9F2C54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981c8c;
/* rgb */ color: rgb(152, 28, 140);
/* oklch */ color: oklch(48.1% 0.196 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba69ae',
    500: '#981c8c',
    950: '#000000',
  },
}
SCSS
$custom: #981c8c;
$custom-light: #ba69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#981c8c",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 305.806,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48078,
    "c": 0.19564,
    "h": 332.7
  },
  "luminance": 0.09399
}

Semantic roles & 50–950 ramp

primary
#981C8C
secondary
#4EC15A
accent
#EC4D3C
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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