#981FA6#981FA6

#981FA6 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.213 H 323.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#981FA6
RGBrgb(152, 31, 166)
HSLhsl(294, 69%, 39%)
HSVhsv(294, 81%, 65%)
CMYKcmyk(8.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(38.57, 63.77, -45.49)
CIE-LCHlch(38.57, 78.33, 324.50°)
OKLaboklab(49.87% 0.1704 -0.1272)
OKLCHoklch(49.87% 0.213 323.3)
XYZxyz(20.3212, 10.4098, 37.0079)
Luminance0.1041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981FA6 #2DA61F
analogous
#541FA6 #981FA6 #A61F70
triadic
#981FA6 #A6981F #1FA698
tetradic
#981FA6 #A6541F #2DA61F #1F70A6
square
#981FA6 #A6541F #2DA61F #1F70A6
split-complementary
#981FA6 #70A61F #1FA654
monochromatic
#3A0C3F #691572 #981FA6 #C52BD7 #D35EE1

Accessibility & contrast

On white

6.81
#981FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#981FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981FA6
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981FA6#FFFFFF#000000##FFFFFF
##981FA61.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#385FA3
Tritanopia (blue-blind)
#9A3B64
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #981fa6;
/* rgb */ color: rgb(152, 31, 166);
/* oklch */ color: oklch(49.9% 0.213 323.3);
Tailwind
colors: {
  custom: {
    50: '#ba6bc1',
    500: '#981fa6',
    950: '#000000',
  },
}
SCSS
$custom: #981fa6;
$custom-light: #ba6bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#981fa6",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 293.778,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4987,
    "c": 0.21266,
    "h": 323.3
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#981FA6
secondary
#66C55B
accent
#EB3C4F
background
#FBF6FB
surface
#F7ECF7
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #981FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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