#8A2580#8A2580

#8A2580 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.170 H 332.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8A2580
RGBrgb(138, 37, 128)
HSLhsl(306, 58%, 34%)
HSVhsv(306, 73%, 54%)
CMYKcmyk(0%, 73.2%, 7.2%, 45.9%)
CIE-LABlab(34.57, 52.45, -28.77)
CIE-LCHlch(34.57, 59.83, 331.25°)
OKLaboklab(45.84% 0.1507 -0.079)
OKLCHoklch(45.84% 0.17 332.3)
XYZxyz(15.0391, 8.2861, 21.2252)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2580 #258A2F
analogous
#62258A #8A2580 #8A254D
triadic
#8A2580 #808A25 #25808A
tetradic
#8A2580 #8A6225 #258A2F #254D8A
square
#8A2580 #8A6225 #258A2F #254D8A
split-complementary
#8A2580 #4D8A25 #258A62
monochromatic
#290B26 #5A1853 #8A2580 #BA32AD #D257C6

Accessibility & contrast

On white

7.90
#8A2580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A2580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2580
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2580#FFFFFF#000000##FFFFFF
##8A25801.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4883
Deuteranopia (green-blind)
#45567E
Tritanopia (blue-blind)
#903050
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2580;
/* rgb */ color: rgb(138, 37, 128);
/* oklch */ color: oklch(45.8% 0.170 332.3);
Tailwind
colors: {
  custom: {
    50: '#af6aa5',
    500: '#8a2580',
    950: '#000000',
  },
}
SCSS
$custom: #8a2580;
$custom-light: #af6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2580",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 128
  },
  "hsl": {
    "h": 305.941,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45839,
    "c": 0.17016,
    "h": 332.3
  },
  "luminance": 0.08285
}

Semantic roles & 50–950 ramp

primary
#8A2580
secondary
#54B75E
accent
#E15647
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2580

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

Preview Lab → · Contrast checker → · Palette generator →

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