#8A4178#8A4178

#8A4178 is a mid, vivid pink. Relative luminance 0.105; OKLCH L 48.8% C 0.122 H 337.6°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8A4178
RGBrgb(138, 65, 120)
HSLhsl(315, 36%, 40%)
HSVhsv(315, 53%, 54%)
CMYKcmyk(0%, 52.9%, 13%, 45.9%)
CIE-LABlab(38.80, 38.51, -17.23)
CIE-LCHlch(38.80, 42.19, 335.90°)
OKLaboklab(48.81% 0.1125 -0.0464)
OKLCHoklch(48.81% 0.122 337.6)
XYZxyz(15.7618, 10.5411, 18.9701)
Luminance0.1054 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4178 #418A53
analogous
#78418A #8A4178 #8A4153
triadic
#8A4178 #788A41 #41788A
tetradic
#8A4178 #8A7841 #418A53 #41538A
square
#8A4178 #8A7841 #418A53 #41538A
split-complementary
#8A4178 #538A41 #418A78
monochromatic
#371A30 #602D54 #8A4178 #B0589B #C482B4

Accessibility & contrast

On white

6.76
#8A4178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A4178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4178
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4178#FFFFFF#000000##FFFFFF
##8A41781.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43547A
Deuteranopia (green-blind)
#575F76
Tritanopia (blue-blind)
#914457
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a4178;
/* rgb */ color: rgb(138, 65, 120);
/* oklch */ color: oklch(48.8% 0.122 337.6);
Tailwind
colors: {
  custom: {
    50: '#ae799f',
    500: '#8a4178',
    950: '#000000',
  },
}
SCSS
$custom: #8a4178;
$custom-light: #ae799f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4178",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 314.795,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48807,
    "c": 0.12173,
    "h": 337.6
  },
  "luminance": 0.1054
}

Semantic roles & 50–950 ramp

primary
#8A4178
secondary
#78AE86
accent
#CC775C
background
#FAF7F9
surface
#F5EDF2
border
#CFC8CC
text
#11090E
muted
#807B7E

Preview Lab

Preview with #8A4178

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

Preview Lab → · Contrast checker → · Palette generator →

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