#8A2A79#8A2A79

#8A2A79 is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.9% C 0.158 H 335.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8A2A79
RGBrgb(138, 42, 121)
HSLhsl(311, 53%, 35%)
HSVhsv(311, 70%, 54%)
CMYKcmyk(0%, 69.6%, 12.3%, 45.9%)
CIE-LABlab(34.88, 49.43, -23.91)
CIE-LCHlch(34.88, 54.90, 334.19°)
OKLaboklab(45.95% 0.1445 -0.0651)
OKLCHoklch(45.95% 0.158 335.7)
XYZxyz(14.7606, 8.4409, 18.9373)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A79 #2A8A3B
analogous
#6B2A8A #8A2A79 #8A2A49
triadic
#8A2A79 #798A2A #2A798A
tetradic
#8A2A79 #8A6B2A #2A8A3B #2A498A
square
#8A2A79 #8A6B2A #2A8A3B #2A498A
split-complementary
#8A2A79 #498A2A #2A8A6B
monochromatic
#2C0D27 #5B1C50 #8A2A79 #B938A2 #CF60BB

Accessibility & contrast

On white

7.81
#8A2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A79
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A79#FFFFFF#000000##FFFFFF
##8A2A791.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497B
Deuteranopia (green-blind)
#4B5777
Tritanopia (blue-blind)
#91304E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2a79;
/* rgb */ color: rgb(138, 42, 121);
/* oklch */ color: oklch(45.9% 0.158 335.7);
Tailwind
colors: {
  custom: {
    50: '#af6ca0',
    500: '#8a2a79',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a79;
$custom-light: #af6ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a79",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 310.625,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45948,
    "c": 0.15845,
    "h": 335.7
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#8A2A79
secondary
#5BB46B
accent
#DD654B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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