#8A1C78#8A1C78

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

Color values

HEX#8A1C78
RGBrgb(138, 28, 120)
HSLhsl(310, 66%, 33%)
HSVhsv(310, 80%, 54%)
CMYKcmyk(0%, 79.7%, 13%, 45.9%)
CIE-LABlab(33.12, 54.14, -26.05)
CIE-LCHlch(33.12, 60.08, 334.31°)
OKLaboklab(44.66% 0.1588 -0.0711)
OKLCHoklch(44.66% 0.174 335.9)
XYZxyz(14.2869, 7.5912, 18.4785)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C78 #1C8A2E
analogous
#651C8A #8A1C78 #8A1C41
triadic
#8A1C78 #788A1C #1C788A
tetradic
#8A1C78 #8A651C #1C8A2E #1C418A
square
#8A1C78 #8A651C #1C8A2E #1C418A
split-complementary
#8A1C78 #418A1C #1C8A65
monochromatic
#240720 #57124C #8A1C78 #BD26A4 #DA47C2

Accessibility & contrast

On white

8.34
#8A1C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8A1C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C78
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C78#FFFFFF#000000##FFFFFF
##8A1C781.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1c78;
/* rgb */ color: rgb(138, 28, 120);
/* oklch */ color: oklch(44.7% 0.174 335.9);
Tailwind
colors: {
  custom: {
    50: '#b0669f',
    500: '#8a1c78',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c78;
$custom-light: #b0669f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c78",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 309.818,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.17401,
    "h": 335.9
  },
  "luminance": 0.0759
}

Semantic roles & 50–950 ramp

primary
#8A1C78
secondary
#46BB5A
accent
#E95B3F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1C78

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

Preview Lab → · Contrast checker → · Palette generator →

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