#981A8C#981A8C

#981A8C is a mid, vivid purple. Relative luminance 0.093; OKLCH L 48.0% C 0.197 H 332.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#981A8C
RGBrgb(152, 26, 140)
HSLhsl(306, 71%, 35%)
HSVhsv(306, 83%, 60%)
CMYKcmyk(0%, 82.9%, 7.9%, 40.4%)
CIE-LABlab(36.57, 60.80, -32.88)
CIE-LCHlch(36.57, 69.12, 331.60°)
OKLaboklab(47.96% 0.1753 -0.0905)
OKLCHoklch(47.96% 0.197 332.7)
XYZxyz(18.0520, 9.3092, 25.6520)
Luminance0.0931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#981A8C #1A9826
analogous
#651A98 #981A8C #981A4D
triadic
#981A8C #8C981A #1A8C98
tetradic
#981A8C #98651A #1A9826 #1A4D98
square
#981A8C #98651A #1A9826 #1A4D98
split-complementary
#981A8C #4D981A #1A9865
monochromatic
#2F082C #64115C #981A8C #CC23BC #E04CD2

Accessibility & contrast

On white

7.34
#981A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#981A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #981A8C
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##981A8C#FFFFFF#000000##FFFFFF
##981A8C1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B8F
Deuteranopia (green-blind)
#485C89
Tritanopia (blue-blind)
#9F2B54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #981a8c;
/* rgb */ color: rgb(152, 26, 140);
/* oklch */ color: oklch(48.0% 0.197 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba68ae',
    500: '#981a8c',
    950: '#000000',
  },
}
SCSS
$custom: #981a8c;
$custom-light: #ba68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#981a8c",
  "rgb": {
    "r": 152,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 305.714,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.47955,
    "c": 0.1973,
    "h": 332.7
  },
  "luminance": 0.09308
}

Semantic roles & 50–950 ramp

primary
#981A8C
secondary
#4BC257
accent
#EE4B3A
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #981A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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