#981F8A#981F8A

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

Color values

HEX#981F8A
RGBrgb(152, 31, 138)
HSLhsl(307, 66%, 36%)
HSVhsv(307, 80%, 60%)
CMYKcmyk(0%, 79.6%, 9.2%, 40.4%)
CIE-LABlab(36.91, 59.19, -31.11)
CIE-LCHlch(36.91, 66.87, 332.27°)
OKLaboklab(48.16% 0.1715 -0.0854)
OKLCHoklch(48.16% 0.192 333.5)
XYZxyz(18.0265, 9.4919, 24.9226)
Luminance0.0949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F8A #1F982D
analogous
#691F98 #981F8A #981F4D
triadic
#981F8A #8A981F #1F8A98
tetradic
#981F8A #98691F #1F982D #1F4D98
square
#981F8A #98691F #1F982D #1F4D98
split-complementary
#981F8A #4D981F #1F9869
monochromatic
#320A2E #65155C #981F8A #CB29B8 #DC55CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981F8A#FFFFFF#000000##FFFFFF
##981F8A1.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)
#1A4C8D
Deuteranopia (green-blind)
#4A5D87
Tritanopia (blue-blind)
#9F2C54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981f8a;
/* rgb */ color: rgb(152, 31, 138);
/* oklch */ color: oklch(48.2% 0.192 333.5);
Tailwind
colors: {
  custom: {
    50: '#ba6aac',
    500: '#981f8a',
    950: '#000000',
  },
}
SCSS
$custom: #981f8a;
$custom-light: #ba6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#981f8a",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 306.942,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.48164,
    "c": 0.19154,
    "h": 333.5
  },
  "luminance": 0.0949
}

Semantic roles & 50–950 ramp

primary
#981F8A
secondary
#53C060
accent
#E9523F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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