#8A2B71#8A2B71

#8A2B71 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.7% C 0.151 H 339.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8A2B71
RGBrgb(138, 43, 113)
HSLhsl(316, 52%, 35%)
HSVhsv(316, 69%, 54%)
CMYKcmyk(0%, 68.8%, 18.1%, 45.9%)
CIE-LABlab(34.65, 47.77, -19.24)
CIE-LCHlch(34.65, 51.50, 338.06°)
OKLaboklab(45.65% 0.142 -0.0519)
OKLCHoklch(45.65% 0.151 339.9)
XYZxyz(14.3261, 8.3246, 16.4719)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B71 #2B8A44
analogous
#732B8A #8A2B71 #8A2B42
triadic
#8A2B71 #718A2B #2B718A
tetradic
#8A2B71 #8A732B #2B8A44 #2B428A
square
#8A2B71 #8A732B #2B8A44 #2B428A
split-complementary
#8A2B71 #428A2B #2B8A73
monochromatic
#2D0E25 #5B1C4B #8A2B71 #B93A97 #CE61B1

Accessibility & contrast

On white

7.88
#8A2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B71
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B71#FFFFFF#000000##FFFFFF
##8A2B711.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#4E576F
Tritanopia (blue-blind)
#922E4A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2b71;
/* rgb */ color: rgb(138, 43, 113);
/* oklch */ color: oklch(45.7% 0.151 339.9);
Tailwind
colors: {
  custom: {
    50: '#af6c9a',
    500: '#8a2b71',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b71;
$custom-light: #af6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b71",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 315.789,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45653,
    "c": 0.15117,
    "h": 339.9
  },
  "luminance": 0.08323
}

Semantic roles & 50–950 ramp

primary
#8A2B71
secondary
#5DB474
accent
#DC724C
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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