#8A177A#8A177A

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

Color values

HEX#8A177A
RGBrgb(138, 23, 122)
HSLhsl(308, 71%, 32%)
HSVhsv(308, 83%, 54%)
CMYKcmyk(0%, 83.3%, 11.6%, 45.9%)
CIE-LABlab(32.75, 55.81, -27.88)
CIE-LCHlch(32.75, 62.38, 333.45°)
OKLaboklab(44.43% 0.163 -0.0764)
OKLCHoklch(44.43% 0.18 334.9)
XYZxyz(14.3007, 7.4225, 19.0881)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A177A #178A27
analogous
#61178A #8A177A #8A1741
triadic
#8A177A #7A8A17 #177A8A
tetradic
#8A177A #8A6117 #178A27 #17418A
square
#8A177A #8A6117 #178A27 #17418A
split-complementary
#8A177A #418A17 #178A61
monochromatic
#21061D #560E4C #8A177A #BE20A8 #DF3DC8

Accessibility & contrast

On white

8.45
#8A177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A177A
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A177A#FFFFFF#000000##FFFFFF
##8A177A1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427D
Deuteranopia (green-blind)
#435377
Tritanopia (blue-blind)
#912349
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a177a;
/* rgb */ color: rgb(138, 23, 122);
/* oklch */ color: oklch(44.4% 0.180 334.9);
Tailwind
colors: {
  custom: {
    50: '#b064a1',
    500: '#8a177a',
    950: '#000000',
  },
}
SCSS
$custom: #8a177a;
$custom-light: #b064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a177a",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 308.348,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44427,
    "c": 0.17999,
    "h": 334.9
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#8A177A
secondary
#3FBE51
accent
#EE533A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A177A

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

Preview Lab → · Contrast checker → · Palette generator →

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