#8A2D78#8A2D78

#8A2D78 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.2% C 0.154 H 336.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8A2D78
RGBrgb(138, 45, 120)
HSLhsl(312, 51%, 36%)
HSVhsv(312, 67%, 54%)
CMYKcmyk(0%, 67.4%, 13%, 45.9%)
CIE-LABlab(35.28, 48.04, -22.67)
CIE-LCHlch(35.28, 53.12, 334.74°)
OKLaboklab(46.22% 0.1407 -0.0616)
OKLCHoklch(46.22% 0.154 336.3)
XYZxyz(14.8100, 8.6374, 18.6528)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D78 #2D8A3F
analogous
#6D2D8A #8A2D78 #8A2D49
triadic
#8A2D78 #788A2D #2D788A
tetradic
#8A2D78 #8A6D2D #2D8A3F #2D498A
square
#8A2D78 #8A6D2D #2D8A3F #2D498A
split-complementary
#8A2D78 #498A2D #2D8A6D
monochromatic
#2E0F28 #5C1E50 #8A2D78 #B83CA0 #CD65B9

Accessibility & contrast

On white

7.70
#8A2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A2D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D78
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D78#FFFFFF#000000##FFFFFF
##8A2D781.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4A7A
Deuteranopia (green-blind)
#4C5876
Tritanopia (blue-blind)
#91324E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2d78;
/* rgb */ color: rgb(138, 45, 120);
/* oklch */ color: oklch(46.2% 0.154 336.3);
Tailwind
colors: {
  custom: {
    50: '#af6d9f',
    500: '#8a2d78',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d78;
$custom-light: #af6d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d78",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 311.613,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46217,
    "c": 0.15357,
    "h": 336.3
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#8A2D78
secondary
#60B370
accent
#DA694D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2D78

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

Preview Lab → · Contrast checker → · Palette generator →

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