#8A2C79#8A2C79

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

Color values

HEX#8A2C79
RGBrgb(138, 44, 121)
HSLhsl(311, 52%, 36%)
HSVhsv(311, 68%, 54%)
CMYKcmyk(0%, 68.1%, 12.3%, 45.9%)
CIE-LABlab(35.18, 48.61, -23.45)
CIE-LCHlch(35.18, 53.97, 334.25°)
OKLaboklab(46.16% 0.1421 -0.0638)
OKLCHoklch(46.16% 0.156 335.8)
XYZxyz(14.8333, 8.5864, 18.9616)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C79 #2C8A3D
analogous
#6C2C8A #8A2C79 #8A2C4A
triadic
#8A2C79 #798A2C #2C798A
tetradic
#8A2C79 #8A6C2C #2C8A3D #2C4A8A
square
#8A2C79 #8A6C2C #2C8A3D #2C4A8A
split-complementary
#8A2C79 #4A8A2C #2C8A6C
monochromatic
#2D0E28 #5C1D50 #8A2C79 #B83BA2 #CD63BA

Accessibility & contrast

On white

7.73
#8A2C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2C79
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C79#FFFFFF#000000##FFFFFF
##8A2C791.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2c79;
/* rgb */ color: rgb(138, 44, 121);
/* oklch */ color: oklch(46.2% 0.156 335.8);
Tailwind
colors: {
  custom: {
    50: '#af6da0',
    500: '#8a2c79',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c79;
$custom-light: #af6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c79",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 310.851,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46159,
    "c": 0.15573,
    "h": 335.8
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#8A2C79
secondary
#5EB46E
accent
#DB664D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2C79

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

Preview Lab → · Contrast checker → · Palette generator →

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