#8A1580#8A1580

#8A1580 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.186 H 332.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#8A1580
RGBrgb(138, 21, 128)
HSLhsl(305, 74%, 31%)
HSVhsv(305, 85%, 54%)
CMYKcmyk(0%, 84.8%, 7.2%, 45.9%)
CIE-LABlab(32.92, 57.20, -31.38)
CIE-LCHlch(32.92, 65.25, 331.25°)
OKLaboklab(44.66% 0.1645 -0.0865)
OKLCHoklch(44.66% 0.186 332.3)
XYZxyz(14.6457, 7.4994, 21.0941)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1580 #158A1F
analogous
#59158A #8A1580 #8A1545
triadic
#8A1580 #808A15 #15808A
tetradic
#8A1580 #8A5915 #158A1F #15458A
square
#8A1580 #8A5915 #158A1F #15458A
split-complementary
#8A1580 #458A15 #158A59
monochromatic
#20051D #550D4F #8A1580 #BF1DB1 #E139D2

Accessibility & contrast

On white

8.40
#8A1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#8A1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1580
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1580#FFFFFF#000000##FFFFFF
##8A15801.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084383
Deuteranopia (green-blind)
#40537D
Tritanopia (blue-blind)
#90254C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1580;
/* rgb */ color: rgb(138, 21, 128);
/* oklch */ color: oklch(44.7% 0.186 332.3);
Tailwind
colors: {
  custom: {
    50: '#b064a5',
    500: '#8a1580',
    950: '#000000',
  },
}
SCSS
$custom: #8a1580;
$custom-light: #b064a5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1580",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 305.128,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.18587,
    "h": 332.3
  },
  "luminance": 0.07498
}

Semantic roles & 50–950 ramp

primary
#8A1580
secondary
#3DBE48
accent
#F04738
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1580

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

Preview Lab → · Contrast checker → · Palette generator →

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