#8A2172#8A2172

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

Color values

HEX#8A2172
RGBrgb(138, 33, 114)
HSLhsl(314, 61%, 34%)
HSVhsv(314, 76%, 54%)
CMYKcmyk(0%, 76.1%, 17.4%, 45.9%)
CIE-LABlab(33.37, 51.67, -21.87)
CIE-LCHlch(33.37, 56.10, 337.06°)
OKLaboklab(44.74% 0.1535 -0.0592)
OKLCHoklch(44.74% 0.164 338.9)
XYZxyz(14.0627, 7.7073, 16.6634)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2172 #218A39
analogous
#6D218A #8A2172 #8A213D
triadic
#8A2172 #728A21 #21728A
tetradic
#8A2172 #8A6D21 #218A39 #213D8A
square
#8A2172 #8A6D21 #218A39 #213D8A
split-complementary
#8A2172 #3D8A21 #218A6D
monochromatic
#270920 #591549 #8A2172 #BB2D9B #D550B7

Accessibility & contrast

On white

8.26
#8A2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2172
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2172#FFFFFF#000000##FFFFFF
##8A21721.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274474
Deuteranopia (green-blind)
#4A5470
Tritanopia (blue-blind)
#922647
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a2172;
/* rgb */ color: rgb(138, 33, 114);
/* oklch */ color: oklch(44.7% 0.164 338.9);
Tailwind
colors: {
  custom: {
    50: '#b0689a',
    500: '#8a2172',
    950: '#000000',
  },
}
SCSS
$custom: #8a2172;
$custom-light: #b0689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2172",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 313.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44736,
    "c": 0.16448,
    "h": 338.9
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#8A2172
secondary
#4EB967
accent
#E56843
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2172

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

Preview Lab → · Contrast checker → · Palette generator →

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