#8A2D7A#8A2D7A

#8A2D7A is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.3% C 0.155 H 335.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8A2D7A
RGBrgb(138, 45, 122)
HSLhsl(310, 51%, 36%)
HSVhsv(310, 67%, 54%)
CMYKcmyk(0%, 67.4%, 11.6%, 45.9%)
CIE-LABlab(35.37, 48.36, -23.77)
CIE-LCHlch(35.37, 53.89, 333.82°)
OKLaboklab(46.32% 0.141 -0.0647)
OKLCHoklch(46.32% 0.155 335.3)
XYZxyz(14.9326, 8.6864, 19.2988)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D7A #2D8A3D
analogous
#6B2D8A #8A2D7A #8A2D4B
triadic
#8A2D7A #7A8A2D #2D7A8A
tetradic
#8A2D7A #8A6B2D #2D8A3D #2D4B8A
square
#8A2D7A #8A6B2D #2D8A3D #2D4B8A
split-complementary
#8A2D7A #4B8A2D #2D8A6B
monochromatic
#2E0F28 #5C1E51 #8A2D7A #B83CA3 #CD65BB

Accessibility & contrast

On white

7.67
#8A2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D7A
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D7A#FFFFFF#000000##FFFFFF
##8A2D7A1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7C
Deuteranopia (green-blind)
#4C5878
Tritanopia (blue-blind)
#91334F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2d7a;
/* rgb */ color: rgb(138, 45, 122);
/* oklch */ color: oklch(46.3% 0.155 335.3);
Tailwind
colors: {
  custom: {
    50: '#af6da0',
    500: '#8a2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d7a;
$custom-light: #af6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d7a",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 310.323,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46319,
    "c": 0.15512,
    "h": 335.3
  },
  "luminance": 0.08685
}

Semantic roles & 50–950 ramp

primary
#8A2D7A
secondary
#60B36E
accent
#DA664D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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