#981FB4#981FB4

#981FB4 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.8% C 0.224 H 318.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#981FB4
RGBrgb(152, 31, 180)
HSLhsl(289, 71%, 41%)
HSVhsv(289, 83%, 71%)
CMYKcmyk(15.6%, 82.8%, 0%, 29.4%)
CIE-LABlab(39.50, 66.26, -52.34)
CIE-LCHlch(39.50, 84.44, 321.70°)
OKLaboklab(50.82% 0.1684 -0.1473)
OKLCHoklch(50.82% 0.224 318.8)
XYZxyz(21.6760, 10.9517, 44.1433)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981FB4 #3BB41F
analogous
#4E1FB4 #981FB4 #B41F86
triadic
#981FB4 #B4981F #1FB498
tetradic
#981FB4 #B44E1F #3BB41F #1F86B4
square
#981FB4 #B44E1F #3BB41F #1F86B4
split-complementary
#981FB4 #86B41F #1FB44E
monochromatic
#400D4C #6C1680 #981FB4 #BD34DC #CE68E5

Accessibility & contrast

On white

6.58
#981FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#981FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981FB4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981FB4#FFFFFF#000000##FFFFFF
##981FB41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#2A61B1
Tritanopia (blue-blind)
#97436C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #981fb4;
/* rgb */ color: rgb(152, 31, 180);
/* oklch */ color: oklch(50.8% 0.224 318.8);
Tailwind
colors: {
  custom: {
    50: '#bb6ccb',
    500: '#981fb4',
    950: '#000000',
  },
}
SCSS
$custom: #981fb4;
$custom-light: #bb6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#981fb4",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 288.725,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50821,
    "c": 0.22374,
    "h": 318.8
  },
  "luminance": 0.10951
}

Semantic roles & 50–950 ramp

primary
#981FB4
secondary
#77CB64
accent
#ED3A5C
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #981FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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