#8A477E#8A477E

#8A477E is a mid, moderate pink. Relative luminance 0.114; OKLCH L 50.0% C 0.116 H 334.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A477E
RGBrgb(138, 71, 126)
HSLhsl(311, 32%, 41%)
HSVhsv(311, 49%, 54%)
CMYKcmyk(0%, 48.6%, 8.7%, 45.9%)
CIE-LABlab(40.27, 36.36, -18.66)
CIE-LCHlch(40.27, 40.87, 332.84°)
OKLaboklab(49.99% 0.1047 -0.0505)
OKLCHoklch(49.99% 0.116 334.3)
XYZxyz(16.5003, 11.4171, 21.0693)
Luminance0.1142 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A477E #478A53
analogous
#74478A #8A477E #8A475C
triadic
#8A477E #7E8A47 #477E8A
tetradic
#8A477E #8A7447 #478A53 #475C8A
square
#8A477E #8A7447 #478A53 #475C8A
split-complementary
#8A477E #5C8A47 #478A74
monochromatic
#391D34 #623259 #8A477E #AE61A0 #C289B8

Accessibility & contrast

On white

6.40
#8A477E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A477E
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A477E#FFFFFF#000000##FFFFFF
##8A477E1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475980
Deuteranopia (green-blind)
#59627C
Tritanopia (blue-blind)
#904B5C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a477e;
/* rgb */ color: rgb(138, 71, 126);
/* oklch */ color: oklch(50.0% 0.116 334.3);
Tailwind
colors: {
  custom: {
    50: '#ae7da3',
    500: '#8a477e',
    950: '#000000',
  },
}
SCSS
$custom: #8a477e;
$custom-light: #ae7da3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a477e",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 310.746,
    "s": 32.057,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49991,
    "c": 0.11621,
    "h": 334.3
  },
  "luminance": 0.11416
}

Semantic roles & 50–950 ramp

primary
#8A477E
secondary
#7FAE87
accent
#C87260
background
#FAF7FA
surface
#F5EEF3
border
#CFC9CD
text
#100A0F
muted
#7F7C7F

Preview Lab

Preview with #8A477E

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

Preview Lab → · Contrast checker → · Palette generator →

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