#981F84#981F84

#981F84 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.187 H 336.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#981F84
RGBrgb(152, 31, 132)
HSLhsl(310, 66%, 36%)
HSVhsv(310, 80%, 60%)
CMYKcmyk(0%, 79.6%, 13.2%, 40.4%)
CIE-LABlab(36.60, 58.29, -27.90)
CIE-LCHlch(36.60, 64.62, 334.42°)
OKLaboklab(47.84% 0.1711 -0.0762)
OKLCHoklch(47.84% 0.187 336)
XYZxyz(17.6040, 9.3230, 22.6977)
Luminance0.0932 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F84 #1F9833
analogous
#6F1F98 #981F84 #981F48
triadic
#981F84 #84981F #1F8498
tetradic
#981F84 #986F1F #1F9833 #1F4898
square
#981F84 #986F1F #1F9833 #1F4898
split-complementary
#981F84 #48981F #1F986F
monochromatic
#320A2C #651558 #981F84 #CB29B0 #DC55C6

Accessibility & contrast

On white

7.33
#981F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#981F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F84
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F84#FFFFFF#000000##FFFFFF
##981F841.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214B87
Deuteranopia (green-blind)
#4D5C81
Tritanopia (blue-blind)
#A02950
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981f84;
/* rgb */ color: rgb(152, 31, 132);
/* oklch */ color: oklch(47.8% 0.187 336.0);
Tailwind
colors: {
  custom: {
    50: '#ba6aa8',
    500: '#981f84',
    950: '#000000',
  },
}
SCSS
$custom: #981f84;
$custom-light: #ba6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#981f84",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 309.917,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47835,
    "c": 0.18731,
    "h": 336
  },
  "luminance": 0.09321
}

Semantic roles & 50–950 ramp

primary
#981F84
secondary
#53C065
accent
#E95B3F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #981F84

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

Preview Lab → · Contrast checker → · Palette generator →

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