#981B9D#981B9D

#981B9D is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.0% C 0.209 H 326.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#981B9D
RGBrgb(152, 27, 157)
HSLhsl(298, 71%, 36%)
HSVhsv(298, 83%, 62%)
CMYKcmyk(3.2%, 82.8%, 0%, 38.4%)
CIE-LABlab(37.65, 63.26, -41.54)
CIE-LCHlch(37.65, 75.68, 326.71°)
OKLaboklab(49.04% 0.174 -0.1156)
OKLCHoklch(49.04% 0.209 326.4)
XYZxyz(19.4263, 9.8950, 32.7785)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B9D #209D1B
analogous
#571B9D #981B9D #9D1B61
triadic
#981B9D #9D981B #1B9D98
tetradic
#981B9D #9D571B #209D1B #1B619D
square
#981B9D #9D571B #209D1B #1B619D
split-complementary
#981B9D #619D1B #1B9D57
monochromatic
#330935 #651269 #981B9D #CB24D1 #DC51E1

Accessibility & contrast

On white

7.05
#981B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#981B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981B9D
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981B9D#FFFFFF#000000##FFFFFF
##981B9D1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#3E5E9A
Tritanopia (blue-blind)
#9C355E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #981b9d;
/* rgb */ color: rgb(152, 27, 157);
/* oklch */ color: oklch(49.0% 0.209 326.4);
Tailwind
colors: {
  custom: {
    50: '#ba6aba',
    500: '#981b9d',
    950: '#000000',
  },
}
SCSS
$custom: #981b9d;
$custom-light: #ba6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#981b9d",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 157
  },
  "hsl": {
    "h": 297.692,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.49043,
    "c": 0.20896,
    "h": 326.4
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#981B9D
secondary
#54C450
accent
#ED3A41
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #981B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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