#8A2873#8A2873

#8A2873 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.4% C 0.157 H 338.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8A2873
RGBrgb(138, 40, 115)
HSLhsl(314, 55%, 35%)
HSVhsv(314, 71%, 54%)
CMYKcmyk(0%, 71%, 16.7%, 45.9%)
CIE-LABlab(34.31, 49.28, -21.02)
CIE-LCHlch(34.31, 53.57, 336.90°)
OKLaboklab(45.44% 0.1459 -0.0569)
OKLCHoklch(45.44% 0.157 338.7)
XYZxyz(14.3348, 8.1600, 17.0364)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2873 #288A3F
analogous
#70288A #8A2873 #8A2842
triadic
#8A2873 #738A28 #28738A
tetradic
#8A2873 #8A7028 #288A3F #28428A
square
#8A2873 #8A7028 #288A3F #28428A
split-complementary
#8A2873 #428A28 #288A70
monochromatic
#2B0C24 #5B1A4B #8A2873 #B9369B #D05DB5

Accessibility & contrast

On white

7.98
#8A2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A2873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2873
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2873#FFFFFF#000000##FFFFFF
##8A28731.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4775
Deuteranopia (green-blind)
#4C5671
Tritanopia (blue-blind)
#922C4A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2873;
/* rgb */ color: rgb(138, 40, 115);
/* oklch */ color: oklch(45.4% 0.157 338.7);
Tailwind
colors: {
  custom: {
    50: '#af6b9b',
    500: '#8a2873',
    950: '#000000',
  },
}
SCSS
$custom: #8a2873;
$custom-light: #af6b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2873",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 314.082,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45439,
    "c": 0.15663,
    "h": 338.7
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#8A2873
secondary
#59B56E
accent
#DE6C49
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2873

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

Preview Lab → · Contrast checker → · Palette generator →

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