#8A2877#8A2877

#8A2877 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.6% C 0.160 H 336.7°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#8A2877
RGBrgb(138, 40, 119)
HSLhsl(312, 55%, 35%)
HSVhsv(312, 71%, 54%)
CMYKcmyk(0%, 71%, 13.8%, 45.9%)
CIE-LABlab(34.51, 49.89, -23.24)
CIE-LCHlch(34.51, 55.04, 335.02°)
OKLaboklab(45.64% 0.1465 -0.0632)
OKLCHoklch(45.64% 0.16 336.7)
XYZxyz(14.5700, 8.2541, 18.2750)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2877 #288A3B
analogous
#6C288A #8A2877 #8A2846
triadic
#8A2877 #778A28 #28778A
tetradic
#8A2877 #8A6C28 #288A3B #28468A
square
#8A2877 #8A6C28 #288A3B #28468A
split-complementary
#8A2877 #468A28 #288A6C
monochromatic
#2B0C25 #5B1A4E #8A2877 #B936A0 #D05DBA

Accessibility & contrast

On white

7.92
#8A2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A2877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2877
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2877#FFFFFF#000000##FFFFFF
##8A28771.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4879
Deuteranopia (green-blind)
#4B5775
Tritanopia (blue-blind)
#912E4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2877;
/* rgb */ color: rgb(138, 40, 119);
/* oklch */ color: oklch(45.6% 0.160 336.7);
Tailwind
colors: {
  custom: {
    50: '#af6b9e',
    500: '#8a2877',
    950: '#000000',
  },
}
SCSS
$custom: #8a2877;
$custom-light: #af6b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2877",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 311.633,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45642,
    "c": 0.15957,
    "h": 336.7
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#8A2877
secondary
#59B56B
accent
#DE6649
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2877

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

Preview Lab → · Contrast checker → · Palette generator →

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