#981F94#981F94

#981F94 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.199 H 329.6°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#981F94
RGBrgb(152, 31, 148)
HSLhsl(302, 66%, 36%)
HSVhsv(302, 80%, 60%)
CMYKcmyk(0%, 79.6%, 2.6%, 40.4%)
CIE-LABlab(37.47, 60.76, -36.36)
CIE-LCHlch(37.47, 70.81, 329.10°)
OKLaboklab(48.74% 0.1716 -0.1006)
OKLCHoklch(48.74% 0.199 329.6)
XYZxyz(18.7841, 9.7950, 28.9125)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F94 #1F9823
analogous
#5F1F98 #981F94 #981F58
triadic
#981F94 #94981F #1F9498
tetradic
#981F94 #985F1F #1F9823 #1F5898
square
#981F94 #985F1F #1F9823 #1F5898
split-complementary
#981F94 #58981F #1F985F
monochromatic
#320A31 #651563 #981F94 #CB29C5 #DC55D8

Accessibility & contrast

On white

7.10
#981F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#981F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981F94
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F94#FFFFFF#000000##FFFFFF
##981F941.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054E97
Deuteranopia (green-blind)
#455E91
Tritanopia (blue-blind)
#9E3259
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #981f94;
/* rgb */ color: rgb(152, 31, 148);
/* oklch */ color: oklch(48.7% 0.199 329.6);
Tailwind
colors: {
  custom: {
    50: '#ba6ab4',
    500: '#981f94',
    950: '#000000',
  },
}
SCSS
$custom: #981f94;
$custom-light: #ba6ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#981f94",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 301.983,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.48742,
    "c": 0.19887,
    "h": 329.6
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#981F94
secondary
#53C057
accent
#E9443F
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #981F94

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

Preview Lab → · Contrast checker → · Palette generator →

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