#8A2173#8A2173

#8A2173 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.8% C 0.165 H 338.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#8A2173
RGBrgb(138, 33, 115)
HSLhsl(313, 61%, 34%)
HSVhsv(313, 76%, 54%)
CMYKcmyk(0%, 76.1%, 16.7%, 45.9%)
CIE-LABlab(33.41, 51.82, -22.42)
CIE-LCHlch(33.41, 56.46, 336.60°)
OKLaboklab(44.79% 0.1536 -0.0608)
OKLCHoklch(44.79% 0.165 338.4)
XYZxyz(14.1199, 7.7301, 16.9648)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2173 #218A38
analogous
#6C218A #8A2173 #8A213E
triadic
#8A2173 #738A21 #21738A
tetradic
#8A2173 #8A6C21 #218A38 #213E8A
square
#8A2173 #8A6C21 #218A38 #213E8A
split-complementary
#8A2173 #3E8A21 #218A6C
monochromatic
#270921 #59154A #8A2173 #BB2D9C #D550B8

Accessibility & contrast

On white

8.25
#8A2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2173
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2173#FFFFFF#000000##FFFFFF
##8A21731.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264475
Deuteranopia (green-blind)
#495471
Tritanopia (blue-blind)
#922647
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a2173;
/* rgb */ color: rgb(138, 33, 115);
/* oklch */ color: oklch(44.8% 0.165 338.4);
Tailwind
colors: {
  custom: {
    50: '#b0689b',
    500: '#8a2173',
    950: '#000000',
  },
}
SCSS
$custom: #8a2173;
$custom-light: #b0689b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2173",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 313.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44787,
    "c": 0.16518,
    "h": 338.4
  },
  "luminance": 0.07729
}

Semantic roles & 50–950 ramp

primary
#8A2173
secondary
#4EB966
accent
#E56743
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2173

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

Preview Lab → · Contrast checker → · Palette generator →

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