#981F8D#981F8D

#981F8D is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.194 H 332.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#981F8D
RGBrgb(152, 31, 141)
HSLhsl(305, 66%, 36%)
HSVhsv(305, 80%, 60%)
CMYKcmyk(0%, 79.6%, 7.2%, 40.4%)
CIE-LABlab(37.08, 59.65, -32.70)
CIE-LCHlch(37.08, 68.03, 331.27°)
OKLaboklab(48.33% 0.1715 -0.09)
OKLCHoklch(48.33% 0.194 332.3)
XYZxyz(18.2467, 9.5800, 26.0823)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F8D #1F982A
analogous
#661F98 #981F8D #981F50
triadic
#981F8D #8D981F #1F8D98
tetradic
#981F8D #98661F #1F982A #1F5098
square
#981F8D #98661F #1F982A #1F5098
split-complementary
#981F8D #50981F #1F9866
monochromatic
#320A2F #65155E #981F8D #CB29BC #DC55D0

Accessibility & contrast

On white

7.20
#981F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#981F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F8D
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F8D#FFFFFF#000000##FFFFFF
##981F8D1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C90
Deuteranopia (green-blind)
#495D8A
Tritanopia (blue-blind)
#9F2E55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #981f8d;
/* rgb */ color: rgb(152, 31, 141);
/* oklch */ color: oklch(48.3% 0.194 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba6aaf',
    500: '#981f8d',
    950: '#000000',
  },
}
SCSS
$custom: #981f8d;
$custom-light: #ba6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#981f8d",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 305.455,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.48333,
    "c": 0.19371,
    "h": 332.3
  },
  "luminance": 0.09578
}

Semantic roles & 50–950 ramp

primary
#981F8D
secondary
#53C05D
accent
#E94E3F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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