#8A1B78#8A1B78

#8A1B78 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.175 H 335.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#8A1B78
RGBrgb(138, 27, 120)
HSLhsl(310, 67%, 32%)
HSVhsv(310, 80%, 54%)
CMYKcmyk(0%, 80.4%, 13%, 45.9%)
CIE-LABlab(33.02, 54.43, -26.20)
CIE-LCHlch(33.02, 60.41, 334.29°)
OKLaboklab(44.58% 0.1597 -0.0716)
OKLCHoklch(44.58% 0.175 335.9)
XYZxyz(14.2636, 7.5445, 18.4707)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B78 #1B8A2D
analogous
#651B8A #8A1B78 #8A1B40
triadic
#8A1B78 #788A1B #1B788A
tetradic
#8A1B78 #8A651B #1B8A2D #1B408A
square
#8A1B78 #8A651B #1B8A2D #1B408A
split-complementary
#8A1B78 #408A1B #1B8A65
monochromatic
#24071F #57114B #8A1B78 #BD25A5 #DB45C2

Accessibility & contrast

On white

8.37
#8A1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#8A1B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B78
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B78#FFFFFF#000000##FFFFFF
##8A1B781.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C437A
Deuteranopia (green-blind)
#455375
Tritanopia (blue-blind)
#912449
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1b78;
/* rgb */ color: rgb(138, 27, 120);
/* oklch */ color: oklch(44.6% 0.175 335.9);
Tailwind
colors: {
  custom: {
    50: '#b0669f',
    500: '#8a1b78',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b78;
$custom-light: #b0669f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b78",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 309.73,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44583,
    "c": 0.17498,
    "h": 335.9
  },
  "luminance": 0.07543
}

Semantic roles & 50–950 ramp

primary
#8A1B78
secondary
#45BC58
accent
#EA5A3E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1B78

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

Preview Lab → · Contrast checker → · Palette generator →

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