#981C8F#981C8F

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

Color values

HEX#981C8F
RGBrgb(152, 28, 143)
HSLhsl(304, 69%, 35%)
HSVhsv(304, 82%, 60%)
CMYKcmyk(0%, 81.6%, 5.9%, 40.4%)
CIE-LABlab(36.91, 60.76, -34.19)
CIE-LCHlch(36.91, 69.72, 330.64°)
OKLaboklab(48.25% 0.1739 -0.0943)
OKLCHoklch(48.25% 0.198 331.5)
XYZxyz(18.3221, 9.4906, 26.8482)
Luminance0.0949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981C8F #1C9825
analogous
#631C98 #981C8F #981C51
triadic
#981C8F #8F981C #1C8F98
tetradic
#981C8F #98631C #1C9825 #1C5198
square
#981C8F #98631C #1C9825 #1C5198
split-complementary
#981C8F #51981C #1C9863
monochromatic
#31092E #64125E #981C8F #CC26C0 #DF50D4

Accessibility & contrast

On white

7.25
#981C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#981C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981C8F
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981C8F#FFFFFF#000000##FFFFFF
##981C8F1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #981c8f;
/* rgb */ color: rgb(152, 28, 143);
/* oklch */ color: oklch(48.3% 0.198 331.5);
Tailwind
colors: {
  custom: {
    50: '#ba69b0',
    500: '#981c8f',
    950: '#000000',
  },
}
SCSS
$custom: #981c8f;
$custom-light: #ba69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#981c8f",
  "rgb": {
    "r": 152,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 304.355,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48251,
    "c": 0.1978,
    "h": 331.5
  },
  "luminance": 0.09489
}

Semantic roles & 50–950 ramp

primary
#981C8F
secondary
#4EC157
accent
#EC493C
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #981C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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