#8A2880#8A2880

#8A2880 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.166 H 332.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8A2880
RGBrgb(138, 40, 128)
HSLhsl(306, 55%, 35%)
HSVhsv(306, 71%, 54%)
CMYKcmyk(0%, 71%, 7.2%, 45.9%)
CIE-LABlab(34.96, 51.34, -28.15)
CIE-LCHlch(34.96, 58.56, 331.26°)
OKLaboklab(46.12% 0.1475 -0.0773)
OKLCHoklch(46.12% 0.166 332.3)
XYZxyz(15.1363, 8.4806, 21.2576)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2880 #288A32
analogous
#63288A #8A2880 #8A284F
triadic
#8A2880 #808A28 #28808A
tetradic
#8A2880 #8A6328 #288A32 #284F8A
square
#8A2880 #8A6328 #288A32 #284F8A
split-complementary
#8A2880 #4F8A28 #288A63
monochromatic
#2B0C28 #5B1A54 #8A2880 #B936AC #D05DC4

Accessibility & contrast

On white

7.79
#8A2880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2880
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2880#FFFFFF#000000##FFFFFF
##8A28801.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234982
Deuteranopia (green-blind)
#47577E
Tritanopia (blue-blind)
#903251
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2880;
/* rgb */ color: rgb(138, 40, 128);
/* oklch */ color: oklch(46.1% 0.166 332.3);
Tailwind
colors: {
  custom: {
    50: '#af6ba5',
    500: '#8a2880',
    950: '#000000',
  },
}
SCSS
$custom: #8a2880;
$custom-light: #af6ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2880",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 306.122,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46122,
    "c": 0.16648,
    "h": 332.3
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#8A2880
secondary
#59B562
accent
#DE5949
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2880

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

Preview Lab → · Contrast checker → · Palette generator →

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