#981BB4#981BB4

#981BB4 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.6% C 0.227 H 319.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#981BB4
RGBrgb(152, 27, 180)
HSLhsl(289, 74%, 41%)
HSVhsv(289, 85%, 71%)
CMYKcmyk(15.6%, 85%, 0%, 29.4%)
CIE-LABlab(39.17, 67.24, -52.87)
CIE-LCHlch(39.17, 85.54, 321.82°)
OKLaboklab(50.59% 0.171 -0.1488)
OKLCHoklch(50.59% 0.227 319)
XYZxyz(21.5779, 10.7556, 44.1106)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981BB4 #37B41B
analogous
#4C1BB4 #981BB4 #B41B83
triadic
#981BB4 #B4981B #1BB498
tetradic
#981BB4 #B44C1B #37B41B #1B83B4
square
#981BB4 #B44C1B #37B41B #1B83B4
split-complementary
#981BB4 #83B41B #1BB44C
monochromatic
#3E0B4A #6B137F #981BB4 #BF2DDF #CF62E7

Accessibility & contrast

On white

6.66
#981BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#981BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981BB4
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981BB4#FFFFFF#000000##FFFFFF
##981BB41.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#2760B1
Tritanopia (blue-blind)
#98416B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #981bb4;
/* rgb */ color: rgb(152, 27, 180);
/* oklch */ color: oklch(50.6% 0.227 319.0);
Tailwind
colors: {
  custom: {
    50: '#bb6bcb',
    500: '#981bb4',
    950: '#000000',
  },
}
SCSS
$custom: #981bb4;
$custom-light: #bb6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#981bb4",
  "rgb": {
    "r": 152,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 289.02,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50588,
    "c": 0.22667,
    "h": 319
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

primary
#981BB4
secondary
#73CC5F
accent
#F13759
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #981BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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