#8A1878#8A1878

#8A1878 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.178 H 335.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#8A1878
RGBrgb(138, 24, 120)
HSLhsl(309, 70%, 32%)
HSVhsv(309, 83%, 54%)
CMYKcmyk(0%, 82.6%, 13%, 45.9%)
CIE-LABlab(32.73, 55.25, -26.65)
CIE-LCHlch(32.73, 61.34, 334.25°)
OKLaboklab(44.38% 0.1621 -0.0728)
OKLCHoklch(44.38% 0.178 335.8)
XYZxyz(14.1983, 7.4139, 18.4489)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1878 #188A2A
analogous
#63188A #8A1878 #8A183F
triadic
#8A1878 #788A18 #18788A
tetradic
#8A1878 #8A6318 #188A2A #183F8A
square
#8A1878 #8A6318 #188A2A #183F8A
split-complementary
#8A1878 #3F8A18 #188A63
monochromatic
#22061D #560F4B #8A1878 #BE21A5 #DE3FC5

Accessibility & contrast

On white

8.46
#8A1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#8A1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1878
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1878#FFFFFF#000000##FFFFFF
##8A18781.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19427A
Deuteranopia (green-blind)
#445375
Tritanopia (blue-blind)
#912248
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1878;
/* rgb */ color: rgb(138, 24, 120);
/* oklch */ color: oklch(44.4% 0.178 335.8);
Tailwind
colors: {
  custom: {
    50: '#b0659f',
    500: '#8a1878',
    950: '#000000',
  },
}
SCSS
$custom: #8a1878;
$custom-light: #b0659f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1878",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 309.474,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44379,
    "c": 0.17772,
    "h": 335.8
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#8A1878
secondary
#40BD54
accent
#ED573B
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1878

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

Preview Lab → · Contrast checker → · Palette generator →

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