#981D9C#981D9C

#981D9C is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.207 H 326.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#981D9C
RGBrgb(152, 29, 156)
HSLhsl(298, 69%, 36%)
HSVhsv(298, 81%, 61%)
CMYKcmyk(2.6%, 81.4%, 0%, 38.8%)
CIE-LABlab(37.76, 62.60, -40.76)
CIE-LCHlch(37.76, 74.70, 326.93°)
OKLaboklab(49.1% 0.1727 -0.1134)
OKLCHoklch(49.1% 0.207 326.7)
XYZxyz(19.3887, 9.9558, 32.3465)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D9C #219C1D
analogous
#591D9C #981D9C #9C1D61
triadic
#981D9C #9C981D #1D9C98
tetradic
#981D9C #9C591D #219C1D #1D619C
square
#981D9C #9C591D #219C1D #1D619C
split-complementary
#981D9C #619C1D #1D9C59
monochromatic
#330A35 #661368 #981D9C #CA27D0 #DB54DF

Accessibility & contrast

On white

7.02
#981D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#981D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981D9C
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D9C#FFFFFF#000000##FFFFFF
##981D9C1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#3F5E99
Tritanopia (blue-blind)
#9C355E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #981d9c;
/* rgb */ color: rgb(152, 29, 156);
/* oklch */ color: oklch(49.1% 0.207 326.7);
Tailwind
colors: {
  custom: {
    50: '#ba6aba',
    500: '#981d9c',
    950: '#000000',
  },
}
SCSS
$custom: #981d9c;
$custom-light: #ba6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#981d9c",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 298.11,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49101,
    "c": 0.20661,
    "h": 326.7
  },
  "luminance": 0.09954
}

Semantic roles & 50–950 ramp

primary
#981D9C
secondary
#56C252
accent
#EB3C42
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #981D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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