#8A5271#8A5271

#8A5271 is a mid, moderate pink. Relative luminance 0.126; OKLCH L 51.3% C 0.085 H 346.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A5271
RGBrgb(138, 82, 113)
HSLhsl(327, 25%, 43%)
HSVhsv(327, 41%, 54%)
CMYKcmyk(0%, 40.6%, 18.1%, 45.9%)
CIE-LABlab(42.20, 27.94, -7.74)
CIE-LCHlch(42.20, 28.99, 344.50°)
OKLaboklab(51.28% 0.0828 -0.0203)
OKLCHoklch(51.28% 0.085 346.2)
XYZxyz(16.4794, 12.6312, 17.1897)
Luminance0.1263 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5271 #528A6B
analogous
#87528A #8A5271 #8A5255
triadic
#8A5271 #718A52 #52718A
tetradic
#8A5271 #8A8752 #528A6B #52558A
square
#8A5271 #8A8752 #528A6B #52558A
split-complementary
#8A5271 #558A52 #528A87
monochromatic
#3D2432 #643B52 #8A5271 #AA6F90 #C196AD

Accessibility & contrast

On white

5.96
#8A5271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A5271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5271
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5271#FFFFFF#000000##FFFFFF
##8A52711.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#565E72
Deuteranopia (green-blind)
#646770
Tritanopia (blue-blind)
#91515D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a5271;
/* rgb */ color: rgb(138, 82, 113);
/* oklch */ color: oklch(51.3% 0.085 346.2);
Tailwind
colors: {
  custom: {
    50: '#ad8499',
    500: '#8a5271',
    950: '#000000',
  },
}
SCSS
$custom: #8a5271;
$custom-light: #ad8499;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5271",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 326.786,
    "s": 25.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51276,
    "c": 0.0853,
    "h": 346.2
  },
  "luminance": 0.1263
}

Semantic roles & 50–950 ramp

primary
#8A5271
secondary
#8AAE9A
accent
#C28F66
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#100B0E
muted
#7F7C7E

Preview Lab

Preview with #8A5271

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

Preview Lab → · Contrast checker → · Palette generator →

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