#8A1D78#8A1D78

#8A1D78 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.173 H 335.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#8A1D78
RGBrgb(138, 29, 120)
HSLhsl(310, 65%, 33%)
HSVhsv(310, 79%, 54%)
CMYKcmyk(0%, 79%, 13%, 45.9%)
CIE-LABlab(33.22, 53.84, -25.88)
CIE-LCHlch(33.22, 59.74, 334.33°)
OKLaboklab(44.73% 0.1579 -0.0707)
OKLCHoklch(44.73% 0.173 335.9)
XYZxyz(14.3110, 7.6394, 18.4865)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D78 #1D8A2F
analogous
#651D8A #8A1D78 #8A1D42
triadic
#8A1D78 #788A1D #1D788A
tetradic
#8A1D78 #8A651D #1D8A2F #1D428A
square
#8A1D78 #8A651D #1D8A2F #1D428A
split-complementary
#8A1D78 #428A1D #1D8A65
monochromatic
#250820 #57124C #8A1D78 #BD28A4 #D949C1

Accessibility & contrast

On white

8.31
#8A1D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A1D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D78
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D78#FFFFFF#000000##FFFFFF
##8A1D781.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E447A
Deuteranopia (green-blind)
#465475
Tritanopia (blue-blind)
#912649
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1d78;
/* rgb */ color: rgb(138, 29, 120);
/* oklch */ color: oklch(44.7% 0.173 335.9);
Tailwind
colors: {
  custom: {
    50: '#b0669f',
    500: '#8a1d78',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d78;
$custom-light: #b0669f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d78",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 309.908,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44729,
    "c": 0.17301,
    "h": 335.9
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#8A1D78
secondary
#48BB5B
accent
#E85B40
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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