#8A1578#8A1578

#8A1578 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.180 H 335.8°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#8A1578
RGBrgb(138, 21, 120)
HSLhsl(309, 74%, 31%)
HSVhsv(309, 85%, 54%)
CMYKcmyk(0%, 84.8%, 13%, 45.9%)
CIE-LABlab(32.47, 56.00, -27.06)
CIE-LCHlch(32.47, 62.19, 334.21°)
OKLaboklab(44.2% 0.1643 -0.074)
OKLCHoklch(44.2% 0.18 335.8)
XYZxyz(14.1398, 7.2970, 18.4294)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1578 #158A27
analogous
#61158A #8A1578 #8A153D
triadic
#8A1578 #788A15 #15788A
tetradic
#8A1578 #8A6115 #158A27 #153D8A
square
#8A1578 #8A6115 #158A27 #153D8A
split-complementary
#8A1578 #3D8A15 #158A61
monochromatic
#20051C #550D4A #8A1578 #BF1DA6 #E139C7

Accessibility & contrast

On white

8.54
#8A1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#8A1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1578
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1578#FFFFFF#000000##FFFFFF
##8A15781.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16417A
Deuteranopia (green-blind)
#445275
Tritanopia (blue-blind)
#912047
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1578;
/* rgb */ color: rgb(138, 21, 120);
/* oklch */ color: oklch(44.2% 0.180 335.8);
Tailwind
colors: {
  custom: {
    50: '#b0649f',
    500: '#8a1578',
    950: '#000000',
  },
}
SCSS
$custom: #8a1578;
$custom-light: #b0649f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1578",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 309.231,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44195,
    "c": 0.18021,
    "h": 335.8
  },
  "luminance": 0.07296
}

Semantic roles & 50–950 ramp

primary
#8A1578
secondary
#3DBE51
accent
#F05438
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1578

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

Preview Lab → · Contrast checker → · Palette generator →

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