#8A2C71#8A2C71

#8A2C71 is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.8% C 0.150 H 340.0°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8A2C71
RGBrgb(138, 44, 113)
HSLhsl(316, 52%, 36%)
HSVhsv(316, 68%, 54%)
CMYKcmyk(0%, 68.1%, 18.1%, 45.9%)
CIE-LABlab(34.80, 47.36, -19.01)
CIE-LCHlch(34.80, 51.03, 338.13°)
OKLaboklab(45.76% 0.1407 -0.0512)
OKLCHoklch(45.76% 0.15 340)
XYZxyz(14.3629, 8.3982, 16.4842)
Luminance0.0840 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C71 #2C8A45
analogous
#742C8A #8A2C71 #8A2C42
triadic
#8A2C71 #718A2C #2C718A
tetradic
#8A2C71 #8A742C #2C8A45 #2C428A
square
#8A2C71 #8A742C #2C8A45 #2C428A
split-complementary
#8A2C71 #428A2C #2C8A74
monochromatic
#2D0E25 #5C1D4B #8A2C71 #B83B97 #CD63B1

Accessibility & contrast

On white

7.84
#8A2C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8A2C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C71
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C71#FFFFFF#000000##FFFFFF
##8A2C711.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324873
Deuteranopia (green-blind)
#4F576F
Tritanopia (blue-blind)
#922F4A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2c71;
/* rgb */ color: rgb(138, 44, 113);
/* oklch */ color: oklch(45.8% 0.150 340.0);
Tailwind
colors: {
  custom: {
    50: '#af6d9a',
    500: '#8a2c71',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c71;
$custom-light: #af6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c71",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 315.957,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45762,
    "c": 0.14978,
    "h": 340
  },
  "luminance": 0.08397
}

Semantic roles & 50–950 ramp

primary
#8A2C71
secondary
#5EB475
accent
#DB734D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2C71

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

Preview Lab → · Contrast checker → · Palette generator →

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