#8A2A76#8A2A76

#8A2A76 is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.8% C 0.156 H 337.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#8A2A76
RGBrgb(138, 42, 118)
HSLhsl(313, 53%, 35%)
HSVhsv(313, 70%, 54%)
CMYKcmyk(0%, 69.6%, 14.5%, 45.9%)
CIE-LABlab(34.74, 48.95, -22.25)
CIE-LCHlch(34.74, 53.77, 335.55°)
OKLaboklab(45.79% 0.144 -0.0604)
OKLCHoklch(45.79% 0.156 337.3)
XYZxyz(14.5795, 8.3685, 17.9835)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A76 #2A8A3E
analogous
#6E2A8A #8A2A76 #8A2A46
triadic
#8A2A76 #768A2A #2A768A
tetradic
#8A2A76 #8A6E2A #2A8A3E #2A468A
square
#8A2A76 #8A6E2A #2A8A3E #2A468A
split-complementary
#8A2A76 #468A2A #2A8A6E
monochromatic
#2C0D26 #5B1C4E #8A2A76 #B9389E #CF60B7

Accessibility & contrast

On white

7.86
#8A2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A76
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A76#FFFFFF#000000##FFFFFF
##8A2A761.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4878
Deuteranopia (green-blind)
#4C5774
Tritanopia (blue-blind)
#912F4C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2a76;
/* rgb */ color: rgb(138, 42, 118);
/* oklch */ color: oklch(45.8% 0.156 337.3);
Tailwind
colors: {
  custom: {
    50: '#af6c9d',
    500: '#8a2a76',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a76;
$custom-light: #af6c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a76",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 312.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45794,
    "c": 0.15618,
    "h": 337.3
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#8A2A76
secondary
#5BB46E
accent
#DD694B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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