#8A177B#8A177B

#8A177B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.181 H 334.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#8A177B
RGBrgb(138, 23, 123)
HSLhsl(308, 71%, 32%)
HSVhsv(308, 83%, 54%)
CMYKcmyk(0%, 83.3%, 10.9%, 45.9%)
CIE-LABlab(32.80, 55.96, -28.43)
CIE-LCHlch(32.80, 62.76, 333.07°)
OKLaboklab(44.48% 0.163 -0.0779)
OKLCHoklch(44.48% 0.181 334.5)
XYZxyz(14.3630, 7.4474, 19.4161)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A177B #178A26
analogous
#60178A #8A177B #8A1742
triadic
#8A177B #7B8A17 #177B8A
tetradic
#8A177B #8A6017 #178A26 #17428A
square
#8A177B #8A6017 #178A26 #17428A
split-complementary
#8A177B #428A17 #178A60
monochromatic
#21061D #560E4C #8A177B #BE20AA #DF3DCA

Accessibility & contrast

On white

8.44
#8A177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#8A177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A177B
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A177B#FFFFFF#000000##FFFFFF
##8A177B1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437E
Deuteranopia (green-blind)
#435378
Tritanopia (blue-blind)
#912449
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a177b;
/* rgb */ color: rgb(138, 23, 123);
/* oklch */ color: oklch(44.5% 0.181 334.5);
Tailwind
colors: {
  custom: {
    50: '#b064a1',
    500: '#8a177b',
    950: '#000000',
  },
}
SCSS
$custom: #8a177b;
$custom-light: #b064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a177b",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 307.826,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44484,
    "c": 0.18069,
    "h": 334.5
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#8A177B
secondary
#3FBE50
accent
#EE513A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A177B

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

Preview Lab → · Contrast checker → · Palette generator →

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