#8A2572#8A2572

#8A2572 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.1% C 0.160 H 339.1°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8A2572
RGBrgb(138, 37, 114)
HSLhsl(314, 58%, 34%)
HSVhsv(314, 73%, 54%)
CMYKcmyk(0%, 73.2%, 17.4%, 45.9%)
CIE-LABlab(33.86, 50.26, -21.09)
CIE-LCHlch(33.86, 54.51, 337.23°)
OKLaboklab(45.1% 0.1492 -0.057)
OKLCHoklch(45.1% 0.16 339.1)
XYZxyz(14.1804, 7.9427, 16.7026)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2572 #258A3D
analogous
#70258A #8A2572 #8A2540
triadic
#8A2572 #728A25 #25728A
tetradic
#8A2572 #8A7025 #258A3D #25408A
square
#8A2572 #8A7025 #258A3D #25408A
split-complementary
#8A2572 #408A25 #258A70
monochromatic
#290B22 #5A184A #8A2572 #BA329A #D257B5

Accessibility & contrast

On white

8.11
#8A2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A2572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2572
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2572#FFFFFF#000000##FFFFFF
##8A25721.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4574
Deuteranopia (green-blind)
#4B5570
Tritanopia (blue-blind)
#922948
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2572;
/* rgb */ color: rgb(138, 37, 114);
/* oklch */ color: oklch(45.1% 0.160 339.1);
Tailwind
colors: {
  custom: {
    50: '#af699a',
    500: '#8a2572',
    950: '#000000',
  },
}
SCSS
$custom: #8a2572;
$custom-light: #af699a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2572",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 314.257,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45096,
    "c": 0.15974,
    "h": 339.1
  },
  "luminance": 0.07941
}

Semantic roles & 50–950 ramp

primary
#8A2572
secondary
#54B76C
accent
#E16B47
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2572

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

Preview Lab → · Contrast checker → · Palette generator →

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