#8A2879#8A2879

#8A2879 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.7% C 0.161 H 335.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8A2879
RGBrgb(138, 40, 121)
HSLhsl(310, 55%, 35%)
HSVhsv(310, 71%, 54%)
CMYKcmyk(0%, 71%, 12.3%, 45.9%)
CIE-LABlab(34.61, 50.21, -24.34)
CIE-LCHlch(34.61, 55.80, 334.13°)
OKLaboklab(45.75% 0.1468 -0.0663)
OKLCHoklch(45.75% 0.161 335.7)
XYZxyz(14.6914, 8.3026, 18.9143)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2879 #288A39
analogous
#6A288A #8A2879 #8A2848
triadic
#8A2879 #798A28 #28798A
tetradic
#8A2879 #8A6A28 #288A39 #28488A
square
#8A2879 #8A6A28 #288A39 #28488A
split-complementary
#8A2879 #488A28 #288A6A
monochromatic
#2B0C26 #5B1A4F #8A2879 #B936A3 #D05DBC

Accessibility & contrast

On white

7.89
#8A2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2879
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2879#FFFFFF#000000##FFFFFF
##8A28791.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29487B
Deuteranopia (green-blind)
#4A5777
Tritanopia (blue-blind)
#912F4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2879;
/* rgb */ color: rgb(138, 40, 121);
/* oklch */ color: oklch(45.7% 0.161 335.7);
Tailwind
colors: {
  custom: {
    50: '#af6ba0',
    500: '#8a2879',
    950: '#000000',
  },
}
SCSS
$custom: #8a2879;
$custom-light: #af6ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2879",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 310.408,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45745,
    "c": 0.16107,
    "h": 335.7
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#8A2879
secondary
#59B569
accent
#DE6349
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2879

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

Preview Lab → · Contrast checker → · Palette generator →

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