#981E8C#981E8C

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

Color values

HEX#981E8C
RGBrgb(152, 30, 140)
HSLhsl(306, 67%, 36%)
HSVhsv(306, 80%, 60%)
CMYKcmyk(0%, 80.3%, 7.9%, 40.4%)
CIE-LABlab(36.93, 59.77, -32.32)
CIE-LCHlch(36.93, 67.95, 331.60°)
OKLaboklab(48.21% 0.1723 -0.0889)
OKLCHoklch(48.21% 0.194 332.7)
XYZxyz(18.1469, 9.4990, 25.6836)
Luminance0.0950 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E8C #1E982A
analogous
#671E98 #981E8C #981E4F
triadic
#981E8C #8C981E #1E8C98
tetradic
#981E8C #98671E #1E982A #1E4F98
square
#981E8C #98671E #1E982A #1E4F98
split-complementary
#981E8C #4F981E #1E9867
monochromatic
#320A2E #65145D #981E8C #CB28BB #DD53D0

Accessibility & contrast

On white

7.24
#981E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981E8C
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981E8C#FFFFFF#000000##FFFFFF
##981E8C1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C8F
Deuteranopia (green-blind)
#495D89
Tritanopia (blue-blind)
#9F2D55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981e8c;
/* rgb */ color: rgb(152, 30, 140);
/* oklch */ color: oklch(48.2% 0.194 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba6aae',
    500: '#981e8c',
    950: '#000000',
  },
}
SCSS
$custom: #981e8c;
$custom-light: #ba6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#981e8c",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 305.902,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48208,
    "c": 0.1939,
    "h": 332.7
  },
  "luminance": 0.09497
}

Semantic roles & 50–950 ramp

primary
#981E8C
secondary
#51C05C
accent
#EA4F3E
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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