#8A2152#8A2152

#8A2152 is a dark, vivid pink. Relative luminance 0.071; OKLCH L 43.3% C 0.146 H 356.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#8A2152
RGBrgb(138, 33, 82)
HSLhsl(332, 61%, 34%)
HSVhsv(332, 76%, 54%)
CMYKcmyk(0%, 76.1%, 40.6%, 45.9%)
CIE-LABlab(32.04, 47.54, -3.29)
CIE-LCHlch(32.04, 47.66, 356.04°)
OKLaboklab(43.33% 0.146 -0.008)
OKLCHoklch(43.33% 0.146 356.8)
XYZxyz(12.5489, 7.1018, 8.6910)
Luminance0.0710 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2152 #218A59
analogous
#8A2186 #8A2152 #8A2421
triadic
#8A2152 #528A21 #21528A
tetradic
#8A2152 #868A21 #218A59 #24218A
square
#8A2152 #868A21 #218A59 #24218A
split-complementary
#8A2152 #218A24 #21868A
monochromatic
#270917 #591535 #8A2152 #BB2D6F #D5508E

Accessibility & contrast

On white

8.68
#8A2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#8A2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2152
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2152#FFFFFF#000000##FFFFFF
##8A21521.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363F53
Deuteranopia (green-blind)
#535250
Tritanopia (blue-blind)
#961336
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8a2152;
/* rgb */ color: rgb(138, 33, 82);
/* oklch */ color: oklch(43.3% 0.146 356.8);
Tailwind
colors: {
  custom: {
    50: '#b16782',
    500: '#8a2152',
    950: '#000000',
  },
}
SCSS
$custom: #8a2152;
$custom-light: #b16782;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2152",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 332,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43334,
    "c": 0.1462,
    "h": 356.8
  },
  "luminance": 0.071
}

Semantic roles & 50–950 ramp

primary
#8A2152
secondary
#4EB987
accent
#E59943
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #8A2152

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

Preview Lab → · Contrast checker → · Palette generator →

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