#8A178C#8A178C

#8A178C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.193 H 327.4°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#8A178C
RGBrgb(138, 23, 140)
HSLhsl(299, 72%, 32%)
HSVhsv(299, 84%, 55%)
CMYKcmyk(1.4%, 83.6%, 0%, 45.1%)
CIE-LABlab(33.80, 58.66, -37.45)
CIE-LCHlch(33.80, 69.59, 327.44°)
OKLaboklab(45.51% 0.1628 -0.1041)
OKLCHoklch(45.51% 0.193 327.4)
XYZxyz(15.5210, 7.9107, 25.5153)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A178C #198C17
analogous
#4F178C #8A178C #8C1754
triadic
#8A178C #8C8A17 #178C8A
tetradic
#8A178C #8C4F17 #198C17 #17548C
square
#8A178C #8C4F17 #198C17 #17548C
split-complementary
#8A178C #548C17 #178C4F
monochromatic
#220623 #560E57 #8A178C #BE20C1 #DD3EDF

Accessibility & contrast

On white

8.13
#8A178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A178C
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A178C#FFFFFF#000000##FFFFFF
##8A178C1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#8E2D53
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a178c;
/* rgb */ color: rgb(138, 23, 140);
/* oklch */ color: oklch(45.5% 0.193 327.4);
Tailwind
colors: {
  custom: {
    50: '#b065ae',
    500: '#8a178c',
    950: '#000000',
  },
}
SCSS
$custom: #8a178c;
$custom-light: #b065ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a178c",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 298.974,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45508,
    "c": 0.1932,
    "h": 327.4
  },
  "luminance": 0.0791
}

Semantic roles & 50–950 ramp

primary
#8A178C
secondary
#42BF3F
accent
#EF393C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A178C

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

Preview Lab → · Contrast checker → · Palette generator →

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