#8A2878#8A2878

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

Color values

HEX#8A2878
RGBrgb(138, 40, 120)
HSLhsl(311, 55%, 35%)
HSVhsv(311, 71%, 54%)
CMYKcmyk(0%, 71%, 13%, 45.9%)
CIE-LABlab(34.56, 50.05, -23.79)
CIE-LCHlch(34.56, 55.42, 334.57°)
OKLaboklab(45.69% 0.1467 -0.0648)
OKLCHoklch(45.69% 0.16 336.2)
XYZxyz(14.6304, 8.2782, 18.5930)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2878 #288A3A
analogous
#6B288A #8A2878 #8A2847
triadic
#8A2878 #788A28 #28788A
tetradic
#8A2878 #8A6B28 #288A3A #28478A
square
#8A2878 #8A6B28 #288A3A #28478A
split-complementary
#8A2878 #478A28 #288A6B
monochromatic
#2B0C25 #5B1A4F #8A2878 #B936A1 #D05DBB

Accessibility & contrast

On white

7.91
#8A2878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2878
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2878#FFFFFF#000000##FFFFFF
##8A28781.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29487A
Deuteranopia (green-blind)
#4A5776
Tritanopia (blue-blind)
#912E4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2878;
/* rgb */ color: rgb(138, 40, 120);
/* oklch */ color: oklch(45.7% 0.160 336.2);
Tailwind
colors: {
  custom: {
    50: '#af6b9f',
    500: '#8a2878',
    950: '#000000',
  },
}
SCSS
$custom: #8a2878;
$custom-light: #af6b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2878",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 311.02,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45693,
    "c": 0.16032,
    "h": 336.2
  },
  "luminance": 0.08277
}

Semantic roles & 50–950 ramp

primary
#8A2878
secondary
#59B56A
accent
#DE6549
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2878

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

Preview Lab → · Contrast checker → · Palette generator →

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