#981F9C#981F9C

#981F9C is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.205 H 326.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#981F9C
RGBrgb(152, 31, 156)
HSLhsl(298, 67%, 37%)
HSVhsv(298, 80%, 61%)
CMYKcmyk(2.6%, 80.1%, 0%, 38.8%)
CIE-LABlab(37.94, 62.07, -40.47)
CIE-LCHlch(37.94, 74.09, 326.90°)
OKLaboklab(49.23% 0.1712 -0.1125)
OKLCHoklch(49.23% 0.205 326.7)
XYZxyz(19.4393, 10.0571, 32.3634)
Luminance0.1006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F9C #239C1F
analogous
#5A1F9C #981F9C #9C1F62
triadic
#981F9C #9C981F #1F9C98
tetradic
#981F9C #9C5A1F #239C1F #1F629C
square
#981F9C #9C5A1F #239C1F #1F629C
split-complementary
#981F9C #629C1F #1F9C5A
monochromatic
#350B36 #661569 #981F9C #CA29CF #D958DE

Accessibility & contrast

On white

6.97
#981F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#981F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981F9C
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F9C#FFFFFF#000000##FFFFFF
##981F9C1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#405E99
Tritanopia (blue-blind)
#9C365E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #981f9c;
/* rgb */ color: rgb(152, 31, 156);
/* oklch */ color: oklch(49.2% 0.205 326.7);
Tailwind
colors: {
  custom: {
    50: '#ba6bba',
    500: '#981f9c',
    950: '#000000',
  },
}
SCSS
$custom: #981f9c;
$custom-light: #ba6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#981f9c",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 298.08,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4923,
    "c": 0.20492,
    "h": 326.7
  },
  "luminance": 0.10056
}

Semantic roles & 50–950 ramp

primary
#981F9C
secondary
#59C155
accent
#EA3E44
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #981F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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