#8A2881#8A2881

#8A2881 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.167 H 331.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8A2881
RGBrgb(138, 40, 129)
HSLhsl(306, 55%, 35%)
HSVhsv(306, 71%, 54%)
CMYKcmyk(0%, 71%, 6.5%, 45.9%)
CIE-LABlab(35.02, 51.51, -28.69)
CIE-LCHlch(35.02, 58.96, 330.88°)
OKLaboklab(46.18% 0.1475 -0.0788)
OKLCHoklch(46.18% 0.167 331.9)
XYZxyz(15.2025, 8.5070, 21.6060)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2881 #288A31
analogous
#62288A #8A2881 #8A2850
triadic
#8A2881 #818A28 #28818A
tetradic
#8A2881 #8A6228 #288A31 #28508A
square
#8A2881 #8A6228 #288A31 #28508A
split-complementary
#8A2881 #508A28 #288A62
monochromatic
#2B0C28 #5B1A55 #8A2881 #B936AD #D05DC5

Accessibility & contrast

On white

7.77
#8A2881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A2881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2881
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2881#FFFFFF#000000##FFFFFF
##8A28811.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224A84
Deuteranopia (green-blind)
#46577F
Tritanopia (blue-blind)
#903251
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2881;
/* rgb */ color: rgb(138, 40, 129);
/* oklch */ color: oklch(46.2% 0.167 331.9);
Tailwind
colors: {
  custom: {
    50: '#af6ba6',
    500: '#8a2881',
    950: '#000000',
  },
}
SCSS
$custom: #8a2881;
$custom-light: #af6ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2881",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 129
  },
  "hsl": {
    "h": 305.51,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46177,
    "c": 0.16727,
    "h": 331.9
  },
  "luminance": 0.08506
}

Semantic roles & 50–950 ramp

primary
#8A2881
secondary
#59B561
accent
#DE5749
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2881

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

Preview Lab → · Contrast checker → · Palette generator →

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