#8A2F52#8A2F52

#8A2F52 is a dark, vivid pink. Relative luminance 0.080; OKLCH L 44.8% C 0.128 H 359.9°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8A2F52
RGBrgb(138, 47, 82)
HSLhsl(337, 49%, 36%)
HSVhsv(337, 66%, 54%)
CMYKcmyk(0%, 65.9%, 40.6%, 45.9%)
CIE-LABlab(34.08, 41.89, -0.28)
CIE-LCHlch(34.08, 41.89, 359.61°)
OKLaboklab(44.84% 0.1281 -0.0002)
OKLCHoklch(44.84% 0.128 359.9)
XYZxyz(13.0216, 8.0470, 8.8485)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F52 #2F8A67
analogous
#8A2F80 #8A2F52 #8A3A2F
triadic
#8A2F52 #528A2F #2F528A
tetradic
#8A2F52 #808A2F #2F8A67 #3A2F8A
square
#8A2F52 #808A2F #2F8A67 #3A2F8A
split-complementary
#8A2F52 #2F8A3A #2F808A
monochromatic
#2F101C #5C1F37 #8A2F52 #B83F6D #CC688E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2F52#FFFFFF#000000##FFFFFF
##8A2F521.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)
#404553
Deuteranopia (green-blind)
#585750
Tritanopia (blue-blind)
#95263D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2f52;
/* rgb */ color: rgb(138, 47, 82);
/* oklch */ color: oklch(44.8% 0.128 359.9);
Tailwind
colors: {
  custom: {
    50: '#b06d82',
    500: '#8a2f52',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f52;
$custom-light: #b06d82;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f52",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 336.923,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44842,
    "c": 0.12808,
    "h": 359.9
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#8A2F52
secondary
#62B394
accent
#D9A44F
background
#FBF6F7
surface
#F6ECEE
border
#D0C7C9
text
#11070A
muted
#807A7C

Preview Lab

Preview with #8A2F52

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

Preview Lab → · Contrast checker → · Palette generator →

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