#8A2A71#8A2A71

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

Color values

HEX#8A2A71
RGBrgb(138, 42, 113)
HSLhsl(316, 53%, 35%)
HSVhsv(316, 70%, 54%)
CMYKcmyk(0%, 69.6%, 18.1%, 45.9%)
CIE-LABlab(34.50, 48.18, -19.47)
CIE-LCHlch(34.50, 51.96, 338.00°)
OKLaboklab(45.55% 0.1432 -0.0525)
OKLCHoklch(45.55% 0.153 339.9)
XYZxyz(14.2902, 8.2528, 16.4599)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A71 #2A8A43
analogous
#732A8A #8A2A71 #8A2A41
triadic
#8A2A71 #718A2A #2A718A
tetradic
#8A2A71 #8A732A #2A8A43 #2A418A
square
#8A2A71 #8A732A #2A8A43 #2A418A
split-complementary
#8A2A71 #418A2A #2A8A73
monochromatic
#2C0D24 #5B1C4B #8A2A71 #B93897 #CF60B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2A71#FFFFFF#000000##FFFFFF
##8A2A711.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)
#304773
Deuteranopia (green-blind)
#4E576F
Tritanopia (blue-blind)
#922D49
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2a71;
/* rgb */ color: rgb(138, 42, 113);
/* oklch */ color: oklch(45.5% 0.153 339.9);
Tailwind
colors: {
  custom: {
    50: '#af6c9a',
    500: '#8a2a71',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a71;
$custom-light: #af6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a71",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 315.625,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45547,
    "c": 0.15255,
    "h": 339.9
  },
  "luminance": 0.08251
}

Semantic roles & 50–950 ramp

primary
#8A2A71
secondary
#5BB473
accent
#DD714B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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