#8A2D77#8A2D77

#8A2D77 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.2% C 0.153 H 336.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8A2D77
RGBrgb(138, 45, 119)
HSLhsl(312, 51%, 36%)
HSVhsv(312, 67%, 54%)
CMYKcmyk(0%, 67.4%, 13.8%, 45.9%)
CIE-LABlab(35.23, 47.88, -22.12)
CIE-LCHlch(35.23, 52.74, 335.20°)
OKLaboklab(46.17% 0.1405 -0.06)
OKLCHoklch(46.17% 0.153 336.9)
XYZxyz(14.7496, 8.6132, 18.3349)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D77 #2D8A40
analogous
#6E2D8A #8A2D77 #8A2D48
triadic
#8A2D77 #778A2D #2D778A
tetradic
#8A2D77 #8A6E2D #2D8A40 #2D488A
square
#8A2D77 #8A6E2D #2D8A40 #2D488A
split-complementary
#8A2D77 #488A2D #2D8A6E
monochromatic
#2E0F27 #5C1E4F #8A2D77 #B83C9F #CD65B7

Accessibility & contrast

On white

7.71
#8A2D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A2D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D77
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D77#FFFFFF#000000##FFFFFF
##8A2D771.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4A79
Deuteranopia (green-blind)
#4D5875
Tritanopia (blue-blind)
#91324E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2d77;
/* rgb */ color: rgb(138, 45, 119);
/* oklch */ color: oklch(46.2% 0.153 336.9);
Tailwind
colors: {
  custom: {
    50: '#af6d9e',
    500: '#8a2d77',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d77;
$custom-light: #af6d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d77",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 312.258,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46167,
    "c": 0.15281,
    "h": 336.9
  },
  "luminance": 0.08612
}

Semantic roles & 50–950 ramp

primary
#8A2D77
secondary
#60B371
accent
#DA6A4D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2D77

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

Preview Lab → · Contrast checker → · Palette generator →

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