#981B8B#981B8B

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

Color values

HEX#981B8B
RGBrgb(152, 27, 139)
HSLhsl(306, 70%, 35%)
HSVhsv(306, 82%, 60%)
CMYKcmyk(0%, 82.2%, 8.6%, 40.4%)
CIE-LABlab(36.60, 60.40, -32.22)
CIE-LCHlch(36.60, 68.46, 331.93°)
OKLaboklab(47.96% 0.1746 -0.0886)
OKLCHoklch(47.96% 0.196 333.1)
XYZxyz(18.0012, 9.3249, 25.2729)
Luminance0.0932 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981B8B #1B9828
analogous
#661B98 #981B8B #981B4C
triadic
#981B8B #8B981B #1B8B98
tetradic
#981B8B #98661B #1B9828 #1B4C98
square
#981B8B #98661B #1B9828 #1B4C98
split-complementary
#981B8B #4C981B #1B9866
monochromatic
#30092C #64125B #981B8B #CC24BB #E04ED0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##981B8B#FFFFFF#000000##FFFFFF
##981B8B1.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)
#134B8E
Deuteranopia (green-blind)
#495C88
Tritanopia (blue-blind)
#9F2B53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981b8b;
/* rgb */ color: rgb(152, 27, 139);
/* oklch */ color: oklch(48.0% 0.196 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba69ad',
    500: '#981b8b',
    950: '#000000',
  },
}
SCSS
$custom: #981b8b;
$custom-light: #ba69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#981b8b",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 306.24,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47958,
    "c": 0.19578,
    "h": 333.1
  },
  "luminance": 0.09323
}

Semantic roles & 50–950 ramp

primary
#981B8B
secondary
#4DC259
accent
#ED4E3B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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