#8A477F#8A477F

#8A477F is a mid, moderate purple. Relative luminance 0.114; OKLCH L 50.0% C 0.117 H 333.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8A477F
RGBrgb(138, 71, 127)
HSLhsl(310, 32%, 41%)
HSVhsv(310, 49%, 54%)
CMYKcmyk(0%, 48.6%, 8%, 45.9%)
CIE-LABlab(40.32, 36.54, -19.20)
CIE-LCHlch(40.32, 41.28, 332.28°)
OKLaboklab(50.04% 0.1049 -0.052)
OKLCHoklch(50.04% 0.117 333.6)
XYZxyz(16.5652, 11.4431, 21.4108)
Luminance0.1144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A477F #478A52
analogous
#73478A #8A477F #8A475D
triadic
#8A477F #7F8A47 #477F8A
tetradic
#8A477F #8A7347 #478A52 #475D8A
square
#8A477F #8A7347 #478A52 #475D8A
split-complementary
#8A477F #5D8A47 #478A73
monochromatic
#391D35 #62325A #8A477F #AE61A1 #C289B9

Accessibility & contrast

On white

6.39
#8A477F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A477F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A477F
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A477F#FFFFFF#000000##FFFFFF
##8A477F1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465981
Deuteranopia (green-blind)
#59637D
Tritanopia (blue-blind)
#8F4B5D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a477f;
/* rgb */ color: rgb(138, 71, 127);
/* oklch */ color: oklch(50.0% 0.117 333.6);
Tailwind
colors: {
  custom: {
    50: '#ae7da4',
    500: '#8a477f',
    950: '#000000',
  },
}
SCSS
$custom: #8a477f;
$custom-light: #ae7da4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a477f",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 127
  },
  "hsl": {
    "h": 309.851,
    "s": 32.057,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.1171,
    "h": 333.6
  },
  "luminance": 0.11442
}

Semantic roles & 50–950 ramp

primary
#8A477F
secondary
#7FAE87
accent
#C87160
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#100A0F
muted
#7F7C7F

Preview Lab

Preview with #8A477F

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

Preview Lab → · Contrast checker → · Palette generator →

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