#981E8B#981E8B

#981E8B is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.193 H 333.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#981E8B
RGBrgb(152, 30, 139)
HSLhsl(306, 67%, 36%)
HSVhsv(306, 80%, 60%)
CMYKcmyk(0%, 80.3%, 8.6%, 40.4%)
CIE-LABlab(36.87, 59.62, -31.79)
CIE-LCHlch(36.87, 67.57, 331.93°)
OKLaboklab(48.15% 0.1723 -0.0874)
OKLCHoklch(48.15% 0.193 333.1)
XYZxyz(18.0735, 9.4696, 25.2970)
Luminance0.0947 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E8B #1E982B
analogous
#681E98 #981E8B #981E4E
triadic
#981E8B #8B981E #1E8B98
tetradic
#981E8B #98681E #1E982B #1E4E98
square
#981E8B #98681E #1E982B #1E4E98
split-complementary
#981E8B #4E981E #1E9868
monochromatic
#320A2E #65145C #981E8B #CB28BA #DD53CE

Accessibility & contrast

On white

7.26
#981E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981E8B
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981E8B#FFFFFF#000000##FFFFFF
##981E8B1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#4A5D88
Tritanopia (blue-blind)
#9F2C54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981e8b;
/* rgb */ color: rgb(152, 30, 139);
/* oklch */ color: oklch(48.2% 0.193 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba6aad',
    500: '#981e8b',
    950: '#000000',
  },
}
SCSS
$custom: #981e8b;
$custom-light: #ba6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#981e8b",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 306.393,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48152,
    "c": 0.19317,
    "h": 333.1
  },
  "luminance": 0.09468
}

Semantic roles & 50–950 ramp

primary
#981E8B
secondary
#51C05D
accent
#EA503E
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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