#8A477D#8A477D

#8A477D is a mid, moderate pink. Relative luminance 0.114; OKLCH L 49.9% C 0.115 H 334.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A477D
RGBrgb(138, 71, 125)
HSLhsl(312, 32%, 41%)
HSVhsv(312, 49%, 54%)
CMYKcmyk(0%, 48.6%, 9.4%, 45.9%)
CIE-LABlab(40.23, 36.18, -18.11)
CIE-LCHlch(40.23, 40.46, 333.42°)
OKLaboklab(49.95% 0.1044 -0.0489)
OKLCHoklch(49.95% 0.115 334.9)
XYZxyz(16.4361, 11.3915, 20.7311)
Luminance0.1139 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A477D #478A54
analogous
#75478A #8A477D #8A475B
triadic
#8A477D #7D8A47 #477D8A
tetradic
#8A477D #8A7547 #478A54 #475B8A
square
#8A477D #8A7547 #478A54 #475B8A
split-complementary
#8A477D #5B8A47 #478A75
monochromatic
#391D34 #623258 #8A477D #AE619F #C289B7

Accessibility & contrast

On white

6.41
#8A477D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A477D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A477D
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A477D#FFFFFF#000000##FFFFFF
##8A477D1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47597F
Deuteranopia (green-blind)
#59627B
Tritanopia (blue-blind)
#904A5C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a477d;
/* rgb */ color: rgb(138, 71, 125);
/* oklch */ color: oklch(49.9% 0.115 334.9);
Tailwind
colors: {
  custom: {
    50: '#ae7da2',
    500: '#8a477d',
    950: '#000000',
  },
}
SCSS
$custom: #8a477d;
$custom-light: #ae7da2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a477d",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 125
  },
  "hsl": {
    "h": 311.642,
    "s": 32.057,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49945,
    "c": 0.11532,
    "h": 334.9
  },
  "luminance": 0.1139
}

Semantic roles & 50–950 ramp

primary
#8A477D
secondary
#7FAE88
accent
#C87460
background
#FAF7FA
surface
#F5EEF3
border
#CFC9CD
text
#100A0F
muted
#7F7C7F

Preview Lab

Preview with #8A477D

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

Preview Lab → · Contrast checker → · Palette generator →

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