#8A2A78#8A2A78

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

Color values

HEX#8A2A78
RGBrgb(138, 42, 120)
HSLhsl(311, 53%, 35%)
HSVhsv(311, 70%, 54%)
CMYKcmyk(0%, 69.6%, 13%, 45.9%)
CIE-LABlab(34.84, 49.27, -23.36)
CIE-LCHlch(34.84, 54.52, 334.64°)
OKLaboklab(45.9% 0.1443 -0.0635)
OKLCHoklch(45.9% 0.158 336.2)
XYZxyz(14.6996, 8.4165, 18.6160)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A78 #2A8A3C
analogous
#6C2A8A #8A2A78 #8A2A48
triadic
#8A2A78 #788A2A #2A788A
tetradic
#8A2A78 #8A6C2A #2A8A3C #2A488A
square
#8A2A78 #8A6C2A #2A8A3C #2A488A
split-complementary
#8A2A78 #488A2A #2A8A6C
monochromatic
#2C0D26 #5B1C4F #8A2A78 #B938A1 #CF60BA

Accessibility & contrast

On white

7.83
#8A2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A78
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A78#FFFFFF#000000##FFFFFF
##8A2A781.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497A
Deuteranopia (green-blind)
#4B5776
Tritanopia (blue-blind)
#91304D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2a78;
/* rgb */ color: rgb(138, 42, 120);
/* oklch */ color: oklch(45.9% 0.158 336.2);
Tailwind
colors: {
  custom: {
    50: '#af6c9f',
    500: '#8a2a78',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a78;
$custom-light: #af6c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a78",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 311.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45896,
    "c": 0.15769,
    "h": 336.2
  },
  "luminance": 0.08415
}

Semantic roles & 50–950 ramp

primary
#8A2A78
secondary
#5BB46C
accent
#DD664B
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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