#981D8E#981D8E

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

Color values

HEX#981D8E
RGBrgb(152, 29, 142)
HSLhsl(305, 68%, 35%)
HSVhsv(305, 81%, 60%)
CMYKcmyk(0%, 80.9%, 6.6%, 40.4%)
CIE-LABlab(36.95, 60.35, -33.52)
CIE-LCHlch(36.95, 69.03, 330.95°)
OKLaboklab(48.26% 0.1731 -0.0924)
OKLCHoklch(48.26% 0.196 331.9)
XYZxyz(18.2708, 9.5087, 26.4590)
Luminance0.0951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D8E #1D9827
analogous
#641D98 #981D8E #981D50
triadic
#981D8E #8E981D #1D8E98
tetradic
#981D8E #98641D #1D9827 #1D5098
square
#981D8E #98641D #1D9827 #1D5098
split-complementary
#981D8E #50981D #1D9864
monochromatic
#31092E #65135E #981D8E #CB27BE #DE52D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981D8E#FFFFFF#000000##FFFFFF
##981D8E1.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)
#104C91
Deuteranopia (green-blind)
#485D8B
Tritanopia (blue-blind)
#9F2D56
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981d8e;
/* rgb */ color: rgb(152, 29, 142);
/* oklch */ color: oklch(48.3% 0.196 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba6aaf',
    500: '#981d8e',
    950: '#000000',
  },
}
SCSS
$custom: #981d8e;
$custom-light: #ba6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#981d8e",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 304.878,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48257,
    "c": 0.19623,
    "h": 331.9
  },
  "luminance": 0.09507
}

Semantic roles & 50–950 ramp

primary
#981D8E
secondary
#50C159
accent
#EB4B3D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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