#981FA5#981FA5

#981FA5 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.212 H 323.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#981FA5
RGBrgb(152, 31, 165)
HSLhsl(294, 68%, 38%)
HSVhsv(294, 81%, 65%)
CMYKcmyk(7.9%, 81.2%, 0%, 35.3%)
CIE-LABlab(38.50, 63.60, -44.99)
CIE-LCHlch(38.50, 77.91, 324.72°)
OKLaboklab(49.81% 0.1705 -0.1258)
OKLCHoklch(49.81% 0.212 323.6)
XYZxyz(20.2298, 10.3733, 36.5267)
Luminance0.1037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981FA5 #2CA51F
analogous
#551FA5 #981FA5 #A51F6F
triadic
#981FA5 #A5981F #1FA598
tetradic
#981FA5 #A5551F #2CA51F #1F6FA5
square
#981FA5 #A5551F #2CA51F #1F6FA5
split-complementary
#981FA5 #6FA51F #1FA555
monochromatic
#390C3E #691571 #981FA5 #C62AD7 #D45EE1

Accessibility & contrast

On white

6.83
#981FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#981FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981FA5
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981FA5#FFFFFF#000000##FFFFFF
##981FA51.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#395FA2
Tritanopia (blue-blind)
#9B3B63
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #981fa5;
/* rgb */ color: rgb(152, 31, 165);
/* oklch */ color: oklch(49.8% 0.212 323.6);
Tailwind
colors: {
  custom: {
    50: '#ba6bc0',
    500: '#981fa5',
    950: '#000000',
  },
}
SCSS
$custom: #981fa5;
$custom-light: #ba6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#981fa5",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 294.179,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49805,
    "c": 0.21187,
    "h": 323.6
  },
  "luminance": 0.10372
}

Semantic roles & 50–950 ramp

primary
#981FA5
secondary
#65C55B
accent
#EB3D4E
background
#FBF6FB
surface
#F7ECF7
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #981FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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