#8A178F#8A178F

#8A178F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.195 H 326.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8A178F
RGBrgb(138, 23, 143)
HSLhsl(298, 72%, 33%)
HSVhsv(298, 84%, 56%)
CMYKcmyk(3.5%, 83.9%, 0%, 43.9%)
CIE-LABlab(33.98, 59.16, -39.00)
CIE-LCHlch(33.98, 70.86, 326.61°)
OKLaboklab(45.7% 0.1625 -0.1086)
OKLCHoklch(45.7% 0.195 326.2)
XYZxyz(15.7453, 8.0004, 26.6962)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A178F #1C8F17
analogous
#4E178F #8A178F #8F1758
triadic
#8A178F #8F8A17 #178F8A
tetradic
#8A178F #8F4E17 #1C8F17 #17588F
square
#8A178F #8F4E17 #1C8F17 #17588F
split-complementary
#8A178F #588F17 #178F4E
monochromatic
#240626 #570F5A #8A178F #BD1FC4 #DA40E0

Accessibility & contrast

On white

8.08
#8A178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A178F
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A178F#FFFFFF#000000##FFFFFF
##8A178F1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#37558C
Tritanopia (blue-blind)
#8E2F55
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a178f;
/* rgb */ color: rgb(138, 23, 143);
/* oklch */ color: oklch(45.7% 0.195 326.2);
Tailwind
colors: {
  custom: {
    50: '#b065b0',
    500: '#8a178f',
    950: '#000000',
  },
}
SCSS
$custom: #8a178f;
$custom-light: #b065b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a178f",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 297.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45701,
    "c": 0.19548,
    "h": 326.2
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

primary
#8A178F
secondary
#46C141
accent
#EF3940
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A178F

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

Preview Lab → · Contrast checker → · Palette generator →

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