#8A2876#8A2876

#8A2876 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.6% C 0.159 H 337.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8A2876
RGBrgb(138, 40, 118)
HSLhsl(312, 55%, 35%)
HSVhsv(312, 71%, 54%)
CMYKcmyk(0%, 71%, 14.5%, 45.9%)
CIE-LABlab(34.46, 49.74, -22.69)
CIE-LCHlch(34.46, 54.67, 335.48°)
OKLaboklab(45.59% 0.1464 -0.0616)
OKLCHoklch(45.59% 0.159 337.2)
XYZxyz(14.5103, 8.2302, 17.9604)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2876 #288A3C
analogous
#6D288A #8A2876 #8A2845
triadic
#8A2876 #768A28 #28768A
tetradic
#8A2876 #8A6D28 #288A3C #28458A
square
#8A2876 #8A6D28 #288A3C #28458A
split-complementary
#8A2876 #458A28 #288A6D
monochromatic
#2B0C25 #5B1A4D #8A2876 #B9369F #D05DB8

Accessibility & contrast

On white

7.94
#8A2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2876
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2876#FFFFFF#000000##FFFFFF
##8A28761.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4778
Deuteranopia (green-blind)
#4B5674
Tritanopia (blue-blind)
#912D4B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2876;
/* rgb */ color: rgb(138, 40, 118);
/* oklch */ color: oklch(45.6% 0.159 337.2);
Tailwind
colors: {
  custom: {
    50: '#af6b9d',
    500: '#8a2876',
    950: '#000000',
  },
}
SCSS
$custom: #8a2876;
$custom-light: #af6b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2876",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 312.245,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4559,
    "c": 0.15882,
    "h": 337.2
  },
  "luminance": 0.08229
}

Semantic roles & 50–950 ramp

primary
#8A2876
secondary
#59B56C
accent
#DE6849
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2876

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

Preview Lab → · Contrast checker → · Palette generator →

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