#8A2166#8A2166

#8A2166 is a dark, vivid pink. Relative luminance 0.074; OKLCH L 44.2% C 0.157 H 345.2°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#8A2166
RGBrgb(138, 33, 102)
HSLhsl(321, 61%, 34%)
HSVhsv(321, 76%, 54%)
CMYKcmyk(0%, 76.1%, 26.1%, 45.9%)
CIE-LABlab(32.81, 49.98, -15.07)
CIE-LCHlch(32.81, 52.20, 343.22°)
OKLaboklab(44.16% 0.1514 -0.0401)
OKLCHoklch(44.16% 0.157 345.2)
XYZxyz(13.4239, 7.4517, 13.2992)
Luminance0.0745 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2166 #218A45
analogous
#79218A #8A2166 #8A2131
triadic
#8A2166 #668A21 #21668A
tetradic
#8A2166 #8A7921 #218A45 #21318A
square
#8A2166 #8A7921 #218A45 #21318A
split-complementary
#8A2166 #318A21 #218A79
monochromatic
#27091D #591541 #8A2166 #BB2D8B #D550A8

Accessibility & contrast

On white

8.43
#8A2166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#8A2166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2166
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2166#FFFFFF#000000##FFFFFF
##8A21661.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4268
Deuteranopia (green-blind)
#4E5464
Tritanopia (blue-blind)
#941F41
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a2166;
/* rgb */ color: rgb(138, 33, 102);
/* oklch */ color: oklch(44.2% 0.157 345.2);
Tailwind
colors: {
  custom: {
    50: '#b06791',
    500: '#8a2166',
    950: '#000000',
  },
}
SCSS
$custom: #8a2166;
$custom-light: #b06791;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2166",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 102
  },
  "hsl": {
    "h": 320.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44156,
    "c": 0.1566,
    "h": 345.2
  },
  "luminance": 0.0745
}

Semantic roles & 50–950 ramp

primary
#8A2166
secondary
#4EB973
accent
#E57B43
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11070D
muted
#807A7D

Preview Lab

Preview with #8A2166

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

Preview Lab → · Contrast checker → · Palette generator →

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