#8A2479#8A2479

#8A2479 is a mid, vivid pink. Relative luminance 0.080; OKLCH L 45.4% C 0.166 H 335.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8A2479
RGBrgb(138, 36, 121)
HSLhsl(310, 59%, 34%)
HSVhsv(310, 74%, 54%)
CMYKcmyk(0%, 73.9%, 12.3%, 45.9%)
CIE-LABlab(34.08, 51.69, -25.16)
CIE-LCHlch(34.08, 57.49, 334.04°)
OKLaboklab(45.37% 0.1512 -0.0687)
OKLCHoklch(45.37% 0.166 335.6)
XYZxyz(14.5635, 8.0468, 18.8716)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2479 #248A35
analogous
#68248A #8A2479 #8A2446
triadic
#8A2479 #798A24 #24798A
tetradic
#8A2479 #8A6824 #248A35 #24468A
square
#8A2479 #8A6824 #248A35 #24468A
split-complementary
#8A2479 #468A24 #248A68
monochromatic
#290B24 #59174E #8A2479 #BB31A4 #D356BE

Accessibility & contrast

On white

8.05
#8A2479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A2479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2479
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2479#FFFFFF#000000##FFFFFF
##8A24791.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2479;
/* rgb */ color: rgb(138, 36, 121);
/* oklch */ color: oklch(45.4% 0.166 335.6);
Tailwind
colors: {
  custom: {
    50: '#af69a0',
    500: '#8a2479',
    950: '#000000',
  },
}
SCSS
$custom: #8a2479;
$custom-light: #af69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2479",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 310,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45366,
    "c": 0.16602,
    "h": 335.6
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#8A2479
secondary
#53B763
accent
#E26046
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2479

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

Preview Lab → · Contrast checker → · Palette generator →

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