#981E8F#981E8F

#981E8F is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.196 H 331.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#981E8F
RGBrgb(152, 30, 143)
HSLhsl(304, 67%, 36%)
HSVhsv(304, 80%, 60%)
CMYKcmyk(0%, 80.3%, 5.9%, 40.4%)
CIE-LABlab(37.09, 60.24, -33.90)
CIE-LCHlch(37.09, 69.12, 330.63°)
OKLaboklab(48.38% 0.1724 -0.0935)
OKLCHoklch(48.38% 0.196 331.5)
XYZxyz(18.3711, 9.5887, 26.8645)
Luminance0.0959 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981E8F #1E9827
analogous
#641E98 #981E8F #981E52
triadic
#981E8F #8F981E #1E8F98
tetradic
#981E8F #98641E #1E9827 #1E5298
square
#981E8F #98641E #1E9827 #1E5298
split-complementary
#981E8F #52981E #1E9864
monochromatic
#320A2F #65145F #981E8F #CB28BF #DD53D3

Accessibility & contrast

On white

7.20
#981E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#981E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981E8F
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981E8F#FFFFFF#000000##FFFFFF
##981E8F1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104D92
Deuteranopia (green-blind)
#475D8C
Tritanopia (blue-blind)
#9E2F56
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981e8f;
/* rgb */ color: rgb(152, 30, 143);
/* oklch */ color: oklch(48.4% 0.196 331.5);
Tailwind
colors: {
  custom: {
    50: '#ba6ab0',
    500: '#981e8f',
    950: '#000000',
  },
}
SCSS
$custom: #981e8f;
$custom-light: #ba6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#981e8f",
  "rgb": {
    "r": 152,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 304.426,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48381,
    "c": 0.19607,
    "h": 331.5
  },
  "luminance": 0.09587
}

Semantic roles & 50–950 ramp

primary
#981E8F
secondary
#51C05A
accent
#EA4B3E
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #981E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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