#981FA8#981FA8

#981FA8 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.214 H 322.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#981FA8
RGBrgb(152, 31, 168)
HSLhsl(293, 69%, 39%)
HSVhsv(293, 82%, 66%)
CMYKcmyk(9.5%, 81.5%, 0%, 34.1%)
CIE-LABlab(38.70, 64.12, -46.48)
CIE-LCHlch(38.70, 79.20, 324.06°)
OKLaboklab(50% 0.1702 -0.1301)
OKLCHoklch(50% 0.214 322.6)
XYZxyz(20.5061, 10.4838, 37.9817)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981FA8 #2FA81F
analogous
#541FA8 #981FA8 #A81F74
triadic
#981FA8 #A8981F #1FA898
tetradic
#981FA8 #A8541F #2FA81F #1F74A8
square
#981FA8 #A8541F #2FA81F #1F74A8
split-complementary
#981FA8 #74A81F #1FA854
monochromatic
#3B0C41 #691574 #981FA8 #C42CD8 #D260E2

Accessibility & contrast

On white

6.78
#981FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#981FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981FA8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981FA8#FFFFFF#000000##FFFFFF
##981FA81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#3760A5
Tritanopia (blue-blind)
#9A3D65
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #981fa8;
/* rgb */ color: rgb(152, 31, 168);
/* oklch */ color: oklch(50.0% 0.214 322.6);
Tailwind
colors: {
  custom: {
    50: '#ba6bc2',
    500: '#981fa8',
    950: '#000000',
  },
}
SCSS
$custom: #981fa8;
$custom-light: #ba6bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#981fa8",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 292.993,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50002,
    "c": 0.21422,
    "h": 322.6
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#981FA8
secondary
#69C65D
accent
#EC3C51
background
#FBF6FC
surface
#F7ECF8
border
#D0C7D1
text
#120812
muted
#817A81

Preview Lab

Preview with #981FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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