#8A2F72#8A2F72

#8A2F72 is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.1% C 0.146 H 339.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8A2F72
RGBrgb(138, 47, 114)
HSLhsl(316, 49%, 36%)
HSVhsv(316, 66%, 54%)
CMYKcmyk(0%, 65.9%, 17.4%, 45.9%)
CIE-LABlab(35.31, 46.23, -18.86)
CIE-LCHlch(35.31, 49.93, 337.81°)
OKLaboklab(46.15% 0.1371 -0.0508)
OKLCHoklch(46.15% 0.146 339.7)
XYZxyz(14.5353, 8.6525, 16.8209)
Luminance0.0865 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F72 #2F8A47
analogous
#752F8A #8A2F72 #8A2F45
triadic
#8A2F72 #728A2F #2F728A
tetradic
#8A2F72 #8A752F #2F8A47 #2F458A
square
#8A2F72 #8A752F #2F8A47 #2F458A
split-complementary
#8A2F72 #458A2F #2F8A75
monochromatic
#2F1027 #5C1F4C #8A2F72 #B83F98 #CC68B1

Accessibility & contrast

On white

7.69
#8A2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2F72
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F72#FFFFFF#000000##FFFFFF
##8A2F721.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344A74
Deuteranopia (green-blind)
#505870
Tritanopia (blue-blind)
#92324C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2f72;
/* rgb */ color: rgb(138, 47, 114);
/* oklch */ color: oklch(46.1% 0.146 339.7);
Tailwind
colors: {
  custom: {
    50: '#af6e9a',
    500: '#8a2f72',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f72;
$custom-light: #af6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f72",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 315.824,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46148,
    "c": 0.1462,
    "h": 339.7
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#8A2F72
secondary
#62B377
accent
#D9734F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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