#981F9D#981F9D

#981F9D is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.206 H 326.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#981F9D
RGBrgb(152, 31, 157)
HSLhsl(298, 67%, 37%)
HSVhsv(298, 80%, 62%)
CMYKcmyk(3.2%, 80.3%, 0%, 38.4%)
CIE-LABlab(38.01, 62.24, -40.97)
CIE-LCHlch(38.01, 74.51, 326.64°)
OKLaboklab(49.29% 0.1712 -0.114)
OKLCHoklch(49.29% 0.206 326.3)
XYZxyz(19.5243, 10.0911, 32.8112)
Luminance0.1009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F9D #249D1F
analogous
#591F9D #981F9D #9D1F63
triadic
#981F9D #9D981F #1F9D98
tetradic
#981F9D #9D591F #249D1F #1F639D
square
#981F9D #9D591F #249D1F #1F639D
split-complementary
#981F9D #639D1F #1F9D59
monochromatic
#350B37 #67156A #981F9D #C929D0 #D958DE

Accessibility & contrast

On white

6.96
#981F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#981F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981F9D
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F9D#FFFFFF#000000##FFFFFF
##981F9D1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#3F5E9A
Tritanopia (blue-blind)
#9C375F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #981f9d;
/* rgb */ color: rgb(152, 31, 157);
/* oklch */ color: oklch(49.3% 0.206 326.3);
Tailwind
colors: {
  custom: {
    50: '#ba6bba',
    500: '#981f9d',
    950: '#000000',
  },
}
SCSS
$custom: #981f9d;
$custom-light: #ba6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#981f9d",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 297.619,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49292,
    "c": 0.20568,
    "h": 326.3
  },
  "luminance": 0.1009
}

Semantic roles & 50–950 ramp

primary
#981F9D
secondary
#5AC256
accent
#EA3E45
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #981F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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