#981D8B#981D8B

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

Color values

HEX#981D8B
RGBrgb(152, 29, 139)
HSLhsl(306, 68%, 35%)
HSVhsv(306, 81%, 60%)
CMYKcmyk(0%, 80.9%, 8.6%, 40.4%)
CIE-LABlab(36.78, 59.89, -31.94)
CIE-LCHlch(36.78, 67.87, 331.93°)
OKLaboklab(48.09% 0.1731 -0.0878)
OKLCHoklch(48.09% 0.194 333.1)
XYZxyz(18.0486, 9.4198, 25.2887)
Luminance0.0942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D8B #1D982A
analogous
#671D98 #981D8B #981D4E
triadic
#981D8B #8B981D #1D8B98
tetradic
#981D8B #98671D #1D982A #1D4E98
square
#981D8B #98671D #1D982A #1D4E98
split-complementary
#981D8B #4E981D #1D9867
monochromatic
#31092D #65135C #981D8B #CB27BA #DE52CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981D8B#FFFFFF#000000##FFFFFF
##981D8B1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8E
Deuteranopia (green-blind)
#495D88
Tritanopia (blue-blind)
#9F2C54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981d8b;
/* rgb */ color: rgb(152, 29, 139);
/* oklch */ color: oklch(48.1% 0.194 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba69ad',
    500: '#981d8b',
    950: '#000000',
  },
}
SCSS
$custom: #981d8b;
$custom-light: #ba69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#981d8b",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 306.341,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48085,
    "c": 0.19407,
    "h": 333.1
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#981D8B
secondary
#50C15C
accent
#EB4F3D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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