#8A2A77#8A2A77

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

Color values

HEX#8A2A77
RGBrgb(138, 42, 119)
HSLhsl(312, 53%, 35%)
HSVhsv(312, 70%, 54%)
CMYKcmyk(0%, 69.6%, 13.8%, 45.9%)
CIE-LABlab(34.79, 49.11, -22.80)
CIE-LCHlch(34.79, 54.14, 335.09°)
OKLaboklab(45.85% 0.1442 -0.062)
OKLCHoklch(45.85% 0.157 336.7)
XYZxyz(14.6392, 8.3924, 18.2981)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A77 #2A8A3D
analogous
#6D2A8A #8A2A77 #8A2A47
triadic
#8A2A77 #778A2A #2A778A
tetradic
#8A2A77 #8A6D2A #2A8A3D #2A478A
square
#8A2A77 #8A6D2A #2A8A3D #2A478A
split-complementary
#8A2A77 #478A2A #2A8A6D
monochromatic
#2C0D26 #5B1C4F #8A2A77 #B9389F #CF60B9

Accessibility & contrast

On white

7.84
#8A2A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A2A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A77
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A77#FFFFFF#000000##FFFFFF
##8A2A771.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4879
Deuteranopia (green-blind)
#4B5775
Tritanopia (blue-blind)
#912F4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2a77;
/* rgb */ color: rgb(138, 42, 119);
/* oklch */ color: oklch(45.8% 0.157 336.7);
Tailwind
colors: {
  custom: {
    50: '#af6c9e',
    500: '#8a2a77',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a77;
$custom-light: #af6c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a77",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 311.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45845,
    "c": 0.15693,
    "h": 336.7
  },
  "luminance": 0.08391
}

Semantic roles & 50–950 ramp

primary
#8A2A77
secondary
#5BB46D
accent
#DD684B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2A77

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

Preview Lab → · Contrast checker → · Palette generator →

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