#8A2981#8A2981

#8A2981 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.166 H 331.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8A2981
RGBrgb(138, 41, 129)
HSLhsl(306, 54%, 35%)
HSVhsv(306, 70%, 54%)
CMYKcmyk(0%, 70.3%, 6.5%, 45.9%)
CIE-LABlab(35.15, 51.13, -28.48)
CIE-LCHlch(35.15, 58.52, 330.88°)
OKLaboklab(46.28% 0.1464 -0.0782)
OKLCHoklch(46.28% 0.166 331.9)
XYZxyz(15.2366, 8.5753, 21.6173)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2981 #298A32
analogous
#62298A #8A2981 #8A2950
triadic
#8A2981 #818A29 #29818A
tetradic
#8A2981 #8A6229 #298A32 #29508A
square
#8A2981 #8A6229 #298A32 #29508A
split-complementary
#8A2981 #508A29 #298A62
monochromatic
#2C0D29 #5B1B55 #8A2981 #B937AD #CF5EC5

Accessibility & contrast

On white

7.74
#8A2981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A2981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2981
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2981#FFFFFF#000000##FFFFFF
##8A29811.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234A84
Deuteranopia (green-blind)
#47587F
Tritanopia (blue-blind)
#903351
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2981;
/* rgb */ color: rgb(138, 41, 129);
/* oklch */ color: oklch(46.3% 0.166 331.9);
Tailwind
colors: {
  custom: {
    50: '#af6ca6',
    500: '#8a2981',
    950: '#000000',
  },
}
SCSS
$custom: #8a2981;
$custom-light: #af6ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2981",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 305.567,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46276,
    "c": 0.166,
    "h": 331.9
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#8A2981
secondary
#5AB562
accent
#DE584A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2981

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

Preview Lab → · Contrast checker → · Palette generator →

#8A2981 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva