#981E8D#981E8D

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

Color values

HEX#981E8D
RGBrgb(152, 30, 141)
HSLhsl(305, 67%, 36%)
HSVhsv(305, 80%, 60%)
CMYKcmyk(0%, 80.3%, 7.2%, 40.4%)
CIE-LABlab(36.98, 59.93, -32.85)
CIE-LCHlch(36.98, 68.34, 331.27°)
OKLaboklab(48.27% 0.1723 -0.0904)
OKLCHoklch(48.27% 0.195 332.3)
XYZxyz(18.2210, 9.5286, 26.0737)
Luminance0.0953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E8D #1E9829
analogous
#661E98 #981E8D #981E50
triadic
#981E8D #8D981E #1E8D98
tetradic
#981E8D #98661E #1E9829 #1E5098
square
#981E8D #98661E #1E9829 #1E5098
split-complementary
#981E8D #50981E #1E9866
monochromatic
#320A2E #65145E #981E8D #CB28BC #DD53D1

Accessibility & contrast

On white

7.23
#981E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#981E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981E8D
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981E8D#FFFFFF#000000##FFFFFF
##981E8D1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#495D8A
Tritanopia (blue-blind)
#9F2E55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981e8d;
/* rgb */ color: rgb(152, 30, 141);
/* oklch */ color: oklch(48.3% 0.195 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba6aaf',
    500: '#981e8d',
    950: '#000000',
  },
}
SCSS
$custom: #981e8d;
$custom-light: #ba6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#981e8d",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 305.41,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48265,
    "c": 0.19462,
    "h": 332.3
  },
  "luminance": 0.09527
}

Semantic roles & 50–950 ramp

primary
#981E8D
secondary
#51C05B
accent
#EA4D3E
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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