#8A2579#8A2579

#8A2579 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.5% C 0.165 H 335.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8A2579
RGBrgb(138, 37, 121)
HSLhsl(310, 58%, 34%)
HSVhsv(310, 73%, 54%)
CMYKcmyk(0%, 73.2%, 12.3%, 45.9%)
CIE-LABlab(34.21, 51.33, -24.97)
CIE-LCHlch(34.21, 57.08, 334.06°)
OKLaboklab(45.46% 0.1501 -0.0681)
OKLCHoklch(45.46% 0.165 335.6)
XYZxyz(14.5942, 8.1082, 18.8819)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2579 #258A36
analogous
#69258A #8A2579 #8A2547
triadic
#8A2579 #798A25 #25798A
tetradic
#8A2579 #8A6925 #258A36 #25478A
square
#8A2579 #8A6925 #258A36 #25478A
split-complementary
#8A2579 #478A25 #258A69
monochromatic
#290B24 #5A184F #8A2579 #BA32A3 #D257BD

Accessibility & contrast

On white

8.01
#8A2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2579
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2579#FFFFFF#000000##FFFFFF
##8A25791.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477B
Deuteranopia (green-blind)
#485677
Tritanopia (blue-blind)
#912C4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2579;
/* rgb */ color: rgb(138, 37, 121);
/* oklch */ color: oklch(45.5% 0.165 335.6);
Tailwind
colors: {
  custom: {
    50: '#af6aa0',
    500: '#8a2579',
    950: '#000000',
  },
}
SCSS
$custom: #8a2579;
$custom-light: #af6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2579",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 310.099,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45457,
    "c": 0.16482,
    "h": 335.6
  },
  "luminance": 0.08107
}

Semantic roles & 50–950 ramp

primary
#8A2579
secondary
#54B765
accent
#E16147
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2579

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

Preview Lab → · Contrast checker → · Palette generator →

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