#8A2B79#8A2B79

#8A2B79 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.1% C 0.157 H 335.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8A2B79
RGBrgb(138, 43, 121)
HSLhsl(311, 52%, 35%)
HSVhsv(311, 69%, 54%)
CMYKcmyk(0%, 68.8%, 12.3%, 45.9%)
CIE-LABlab(35.03, 49.02, -23.68)
CIE-LCHlch(35.03, 54.44, 334.22°)
OKLaboklab(46.05% 0.1433 -0.0645)
OKLCHoklch(46.05% 0.157 335.8)
XYZxyz(14.7965, 8.5128, 18.9493)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B79 #2B8A3C
analogous
#6B2B8A #8A2B79 #8A2B49
triadic
#8A2B79 #798A2B #2B798A
tetradic
#8A2B79 #8A6B2B #2B8A3C #2B498A
square
#8A2B79 #8A6B2B #2B8A3C #2B498A
split-complementary
#8A2B79 #498A2B #2B8A6B
monochromatic
#2D0E27 #5B1C50 #8A2B79 #B93AA2 #CE61BB

Accessibility & contrast

On white

7.77
#8A2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A2B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B79
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B79#FFFFFF#000000##FFFFFF
##8A2B791.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497B
Deuteranopia (green-blind)
#4B5877
Tritanopia (blue-blind)
#91314E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2b79;
/* rgb */ color: rgb(138, 43, 121);
/* oklch */ color: oklch(46.1% 0.157 335.8);
Tailwind
colors: {
  custom: {
    50: '#af6ca0',
    500: '#8a2b79',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b79;
$custom-light: #af6ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b79",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 310.737,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46053,
    "c": 0.1571,
    "h": 335.8
  },
  "luminance": 0.08512
}

Semantic roles & 50–950 ramp

primary
#8A2B79
secondary
#5DB46C
accent
#DC664C
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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