#8A2042#8A2042

#8A2042 is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.7% C 0.142 H 6.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#8A2042
RGBrgb(138, 32, 66)
HSLhsl(341, 62%, 33%)
HSVhsv(341, 77%, 54%)
CMYKcmyk(0%, 76.8%, 52.2%, 45.9%)
CIE-LABlab(31.42, 46.31, 6.33)
CIE-LCHlch(31.42, 46.74, 7.78°)
OKLaboklab(42.72% 0.1413 0.0165)
OKLCHoklch(42.72% 0.142 6.6)
XYZxyz(11.9822, 6.8313, 5.8408)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2042 #208A68
analogous
#8A2077 #8A2042 #8A3320
triadic
#8A2042 #428A20 #20428A
tetradic
#8A2042 #778A20 #208A68 #33208A
square
#8A2042 #778A20 #208A68 #33208A
split-complementary
#8A2042 #208A33 #20778A
monochromatic
#270912 #58142A #8A2042 #BC2C5A #D64E7A

Accessibility & contrast

On white

8.88
#8A2042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#8A2042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2042
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2042#FFFFFF#000000##FFFFFF
##8A20421.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3C43
Deuteranopia (green-blind)
#56523F
Tritanopia (blue-blind)
#97052E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a2042;
/* rgb */ color: rgb(138, 32, 66);
/* oklch */ color: oklch(42.7% 0.142 6.6);
Tailwind
colors: {
  custom: {
    50: '#b26676',
    500: '#8a2042',
    950: '#000000',
  },
}
SCSS
$custom: #8a2042;
$custom-light: #b26676;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2042",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 66
  },
  "hsl": {
    "h": 340.755,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42719,
    "c": 0.14226,
    "h": 6.6
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#8A2042
secondary
#4DB996
accent
#E5B142
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A2042

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

Preview Lab → · Contrast checker → · Palette generator →

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