#981F9E#981F9E

#981F9E is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.4% C 0.206 H 326.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#981F9E
RGBrgb(152, 31, 158)
HSLhsl(297, 67%, 37%)
HSVhsv(297, 80%, 62%)
CMYKcmyk(3.8%, 80.4%, 0%, 38%)
CIE-LABlab(38.07, 62.40, -41.48)
CIE-LCHlch(38.07, 74.93, 326.39°)
OKLaboklab(49.36% 0.1711 -0.1155)
OKLCHoklch(49.36% 0.206 326)
XYZxyz(19.6100, 10.1254, 33.2626)
Luminance0.1012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981F9E #259E1F
analogous
#581F9E #981F9E #9E1F65
triadic
#981F9E #9E981F #1F9E98
tetradic
#981F9E #9E581F #259E1F #1F659E
square
#981F9E #9E581F #259E1F #1F659E
split-complementary
#981F9E #659E1F #1F9E58
monochromatic
#360B38 #67156B #981F9E #C929D1 #D859DE

Accessibility & contrast

On white

6.94
#981F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#981F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #981F9E
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981F9E#FFFFFF#000000##FFFFFF
##981F9E1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#3F5F9B
Tritanopia (blue-blind)
#9C375F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #981f9e;
/* rgb */ color: rgb(152, 31, 158);
/* oklch */ color: oklch(49.4% 0.206 326.0);
Tailwind
colors: {
  custom: {
    50: '#ba6bbb',
    500: '#981f9e',
    950: '#000000',
  },
}
SCSS
$custom: #981f9e;
$custom-light: #ba6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#981f9e",
  "rgb": {
    "r": 152,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 297.165,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49355,
    "c": 0.20645,
    "h": 326
  },
  "luminance": 0.10124
}

Semantic roles & 50–950 ramp

primary
#981F9E
secondary
#5CC256
accent
#EA3E46
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #981F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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