#981D8D#981D8D

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

Color values

HEX#981D8D
RGBrgb(152, 29, 141)
HSLhsl(305, 68%, 35%)
HSVhsv(305, 81%, 60%)
CMYKcmyk(0%, 80.9%, 7.2%, 40.4%)
CIE-LABlab(36.89, 60.20, -32.99)
CIE-LCHlch(36.89, 68.64, 331.27°)
OKLaboklab(48.2% 0.1731 -0.0908)
OKLCHoklch(48.2% 0.196 332.3)
XYZxyz(18.1961, 9.4788, 26.0654)
Luminance0.0948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981D8D #1D9828
analogous
#651D98 #981D8D #981D4F
triadic
#981D8D #8D981D #1D8D98
tetradic
#981D8D #98651D #1D9828 #1D4F98
square
#981D8D #98651D #1D9828 #1D4F98
split-complementary
#981D8D #4F981D #1D9865
monochromatic
#31092E #65135D #981D8D #CB27BD #DE52D1

Accessibility & contrast

On white

7.25
#981D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #981D8D
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981D8D#FFFFFF#000000##FFFFFF
##981D8D1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C90
Deuteranopia (green-blind)
#485D8A
Tritanopia (blue-blind)
#9F2D55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981d8d;
/* rgb */ color: rgb(152, 29, 141);
/* oklch */ color: oklch(48.2% 0.196 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba69af',
    500: '#981d8d',
    950: '#000000',
  },
}
SCSS
$custom: #981d8d;
$custom-light: #ba69af;
$custom-dark: #000000;
JSON
{
  "hex": "#981d8d",
  "rgb": {
    "r": 152,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 305.366,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48199,
    "c": 0.1955,
    "h": 332.3
  },
  "luminance": 0.09477
}

Semantic roles & 50–950 ramp

primary
#981D8D
secondary
#50C15A
accent
#EB4D3D
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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