#981E8A#981E8A

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

Color values

HEX#981E8A
RGBrgb(152, 30, 138)
HSLhsl(307, 67%, 36%)
HSVhsv(307, 80%, 60%)
CMYKcmyk(0%, 80.3%, 9.2%, 40.4%)
CIE-LABlab(36.82, 59.47, -31.26)
CIE-LCHlch(36.82, 67.18, 332.27°)
OKLaboklab(48.1% 0.1723 -0.0858)
OKLCHoklch(48.1% 0.192 333.5)
XYZxyz(18.0008, 9.4405, 24.9140)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E8A #1E982C
analogous
#691E98 #981E8A #981E4D
triadic
#981E8A #8A981E #1E8A98
tetradic
#981E8A #98691E #1E982C #1E4D98
square
#981E8A #98691E #1E982C #1E4D98
split-complementary
#981E8A #4D981E #1E9869
monochromatic
#320A2D #65145C #981E8A #CB28B8 #DD53CD

Accessibility & contrast

On white

7.27
#981E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981E8A
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981E8A#FFFFFF#000000##FFFFFF
##981E8A1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8D
Deuteranopia (green-blind)
#4A5D87
Tritanopia (blue-blind)
#9F2C54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981e8a;
/* rgb */ color: rgb(152, 30, 138);
/* oklch */ color: oklch(48.1% 0.192 333.5);
Tailwind
colors: {
  custom: {
    50: '#ba6aac',
    500: '#981e8a',
    950: '#000000',
  },
}
SCSS
$custom: #981e8a;
$custom-light: #ba6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#981e8a",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 306.885,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48095,
    "c": 0.19246,
    "h": 333.5
  },
  "luminance": 0.09439
}

Semantic roles & 50–950 ramp

primary
#981E8A
secondary
#51C05E
accent
#EA523E
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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