#8A2F71#8A2F71

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

Color values

HEX#8A2F71
RGBrgb(138, 47, 113)
HSLhsl(316, 49%, 36%)
HSVhsv(316, 66%, 54%)
CMYKcmyk(0%, 65.9%, 18.1%, 45.9%)
CIE-LABlab(35.26, 46.08, -18.29)
CIE-LCHlch(35.26, 49.58, 338.35°)
OKLaboklab(46.1% 0.1369 -0.0492)
OKLCHoklch(46.1% 0.145 340.2)
XYZxyz(14.4787, 8.6299, 16.5228)
Luminance0.0863 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F71 #2F8A48
analogous
#762F8A #8A2F71 #8A2F44
triadic
#8A2F71 #718A2F #2F718A
tetradic
#8A2F71 #8A762F #2F8A48 #2F448A
square
#8A2F71 #8A762F #2F8A48 #2F448A
split-complementary
#8A2F71 #448A2F #2F8A76
monochromatic
#2F1026 #5C1F4C #8A2F71 #B83F96 #CC68B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2F71#FFFFFF#000000##FFFFFF
##8A2F711.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)
#344A73
Deuteranopia (green-blind)
#50586F
Tritanopia (blue-blind)
#92314B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2f71;
/* rgb */ color: rgb(138, 47, 113);
/* oklch */ color: oklch(46.1% 0.145 340.2);
Tailwind
colors: {
  custom: {
    50: '#af6e9a',
    500: '#8a2f71',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f71;
$custom-light: #af6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f71",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 316.484,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.461,
    "c": 0.14547,
    "h": 340.2
  },
  "luminance": 0.08629
}

Semantic roles & 50–950 ramp

primary
#8A2F71
secondary
#62B378
accent
#D9754F
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8A2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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