#8A2171#8A2171

#8A2171 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.7% C 0.164 H 339.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#8A2171
RGBrgb(138, 33, 113)
HSLhsl(314, 61%, 34%)
HSVhsv(314, 76%, 54%)
CMYKcmyk(0%, 76.1%, 18.1%, 45.9%)
CIE-LABlab(33.32, 51.52, -21.31)
CIE-LCHlch(33.32, 55.75, 337.53°)
OKLaboklab(44.69% 0.1533 -0.0576)
OKLCHoklch(44.69% 0.164 339.4)
XYZxyz(14.0061, 7.6846, 16.3652)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2171 #218A3A
analogous
#6E218A #8A2171 #8A213C
triadic
#8A2171 #718A21 #21718A
tetradic
#8A2171 #8A6E21 #218A3A #213C8A
square
#8A2171 #8A6E21 #218A3A #213C8A
split-complementary
#8A2171 #3C8A21 #218A6E
monochromatic
#270920 #591549 #8A2171 #BB2D99 #D550B6

Accessibility & contrast

On white

8.28
#8A2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2171
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2171#FFFFFF#000000##FFFFFF
##8A21711.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284473
Deuteranopia (green-blind)
#4A546F
Tritanopia (blue-blind)
#922546
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a2171;
/* rgb */ color: rgb(138, 33, 113);
/* oklch */ color: oklch(44.7% 0.164 339.4);
Tailwind
colors: {
  custom: {
    50: '#b0689a',
    500: '#8a2171',
    950: '#000000',
  },
}
SCSS
$custom: #8a2171;
$custom-light: #b0689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2171",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 314.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44685,
    "c": 0.16379,
    "h": 339.4
  },
  "luminance": 0.07683
}

Semantic roles & 50–950 ramp

primary
#8A2171
secondary
#4EB968
accent
#E56A43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2171

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

Preview Lab → · Contrast checker → · Palette generator →

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