#981FA7#981FA7

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

Color values

HEX#981FA7
RGBrgb(152, 31, 167)
HSLhsl(293, 69%, 39%)
HSVhsv(293, 81%, 65%)
CMYKcmyk(9%, 81.4%, 0%, 34.5%)
CIE-LABlab(38.63, 63.94, -45.99)
CIE-LCHlch(38.63, 78.76, 324.28°)
OKLaboklab(49.94% 0.1703 -0.1287)
OKLCHoklch(49.94% 0.213 322.9)
XYZxyz(20.4133, 10.4467, 37.4929)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981FA7 #2EA71F
analogous
#541FA7 #981FA7 #A71F72
triadic
#981FA7 #A7981F #1FA798
tetradic
#981FA7 #A7541F #2EA71F #1F72A7
square
#981FA7 #A7541F #2EA71F #1F72A7
split-complementary
#981FA7 #72A71F #1FA754
monochromatic
#3A0C40 #691573 #981FA7 #C52BD8 #D35FE1

Accessibility & contrast

On white

6.80
#981FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#981FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981FA7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981FA7#FFFFFF#000000##FFFFFF
##981FA71.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#385FA4
Tritanopia (blue-blind)
#9A3C64
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #981fa7;
/* rgb */ color: rgb(152, 31, 167);
/* oklch */ color: oklch(49.9% 0.213 322.9);
Tailwind
colors: {
  custom: {
    50: '#ba6bc2',
    500: '#981fa7',
    950: '#000000',
  },
}
SCSS
$custom: #981fa7;
$custom-light: #ba6bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#981fa7",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 293.382,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49936,
    "c": 0.21343,
    "h": 322.9
  },
  "luminance": 0.10445
}

Semantic roles & 50–950 ramp

primary
#981FA7
secondary
#68C65C
accent
#EC3C50
background
#FBF6FC
surface
#F7ECF8
border
#D0C7D1
text
#120812
muted
#817A81

Preview Lab

Preview with #981FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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