#981B8E#981B8E

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

Color values

HEX#981B8E
RGBrgb(152, 27, 142)
HSLhsl(305, 70%, 35%)
HSVhsv(305, 82%, 60%)
CMYKcmyk(0%, 82.2%, 6.6%, 40.4%)
CIE-LABlab(36.77, 60.86, -33.80)
CIE-LCHlch(36.77, 69.62, 330.95°)
OKLaboklab(48.13% 0.1746 -0.0931)
OKLCHoklch(48.13% 0.198 331.9)
XYZxyz(18.2234, 9.4138, 26.4432)
Luminance0.0941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B8E #1B9825
analogous
#631B98 #981B8E #981B4F
triadic
#981B8E #8E981B #1B8E98
tetradic
#981B8E #98631B #1B9825 #1B4F98
square
#981B8E #98631B #1B9825 #1B4F98
split-complementary
#981B8E #4F981B #1B9863
monochromatic
#30092D #64125D #981B8E #CC24BF #E04ED4

Accessibility & contrast

On white

7.29
#981B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#981B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B8E
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B8E#FFFFFF#000000##FFFFFF
##981B8E1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C91
Deuteranopia (green-blind)
#475C8B
Tritanopia (blue-blind)
#9F2C55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981b8e;
/* rgb */ color: rgb(152, 27, 142);
/* oklch */ color: oklch(48.1% 0.198 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba69af',
    500: '#981b8e',
    950: '#000000',
  },
}
SCSS
$custom: #981b8e;
$custom-light: #ba69af;
$custom-dark: #000000;
JSON
{
  "hex": "#981b8e",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 304.8,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48131,
    "c": 0.19791,
    "h": 331.9
  },
  "luminance": 0.09412
}

Semantic roles & 50–950 ramp

primary
#981B8E
secondary
#4DC256
accent
#ED493B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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