#8A178D#8A178D

#8A178D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.194 H 327.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8A178D
RGBrgb(138, 23, 141)
HSLhsl(298, 72%, 32%)
HSVhsv(298, 84%, 55%)
CMYKcmyk(2.1%, 83.7%, 0%, 44.7%)
CIE-LABlab(33.86, 58.82, -37.97)
CIE-LCHlch(33.86, 70.01, 327.16°)
OKLaboklab(45.57% 0.1627 -0.1056)
OKLCHoklch(45.57% 0.194 327)
XYZxyz(15.5951, 7.9403, 25.9054)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A178D #1A8D17
analogous
#4F178D #8A178D #8D1755
triadic
#8A178D #8D8A17 #178D8A
tetradic
#8A178D #8D4F17 #1A8D17 #17558D
square
#8A178D #8D4F17 #1A8D17 #17558D
split-complementary
#8A178D #558D17 #178D4F
monochromatic
#230624 #570E58 #8A178D #BD20C2 #DC3FE0

Accessibility & contrast

On white

8.12
#8A178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A178D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A178D#FFFFFF#000000##FFFFFF
##8A178D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#38548A
Tritanopia (blue-blind)
#8E2E54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a178d;
/* rgb */ color: rgb(138, 23, 141);
/* oklch */ color: oklch(45.6% 0.194 327.0);
Tailwind
colors: {
  custom: {
    50: '#b065af',
    500: '#8a178d',
    950: '#000000',
  },
}
SCSS
$custom: #8a178d;
$custom-light: #b065af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a178d",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 298.475,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.19395,
    "h": 327
  },
  "luminance": 0.07939
}

Semantic roles & 50–950 ramp

primary
#8A178D
secondary
#43C040
accent
#EF393E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A178D

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

Preview Lab → · Contrast checker → · Palette generator →

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