#8A2162#8A2162

#8A2162 is a dark, vivid pink. Relative luminance 0.074; OKLCH L 44.0% C 0.154 H 347.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#8A2162
RGBrgb(138, 33, 98)
HSLhsl(323, 61%, 34%)
HSVhsv(323, 76%, 54%)
CMYKcmyk(0%, 76.1%, 29%, 45.9%)
CIE-LABlab(32.64, 49.45, -12.76)
CIE-LCHlch(32.64, 51.07, 345.53°)
OKLaboklab(43.98% 0.1505 -0.0337)
OKLCHoklch(43.98% 0.154 347.4)
XYZxyz(13.2303, 7.3743, 12.2795)
Luminance0.0737 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2162 #218A49
analogous
#7D218A #8A2162 #8A212D
triadic
#8A2162 #628A21 #21628A
tetradic
#8A2162 #8A7D21 #218A49 #212D8A
square
#8A2162 #8A7D21 #218A49 #212D8A
split-complementary
#8A2162 #2D8A21 #218A7D
monochromatic
#27091C #59153F #8A2162 #BB2D85 #D550A3

Accessibility & contrast

On white

8.49
#8A2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8A2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2162
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2162#FFFFFF#000000##FFFFFF
##8A21621.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304164
Deuteranopia (green-blind)
#4F5360
Tritanopia (blue-blind)
#941D3E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a2162;
/* rgb */ color: rgb(138, 33, 98);
/* oklch */ color: oklch(44.0% 0.154 347.4);
Tailwind
colors: {
  custom: {
    50: '#b0678e',
    500: '#8a2162',
    950: '#000000',
  },
}
SCSS
$custom: #8a2162;
$custom-light: #b0678e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2162",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 322.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43977,
    "c": 0.15422,
    "h": 347.4
  },
  "luminance": 0.07373
}

Semantic roles & 50–950 ramp

primary
#8A2162
secondary
#4EB977
accent
#E58143
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11070C
muted
#807A7D

Preview Lab

Preview with #8A2162

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

Preview Lab → · Contrast checker → · Palette generator →

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