#8A2242#8A2242

#8A2242 is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.9% C 0.140 H 7.1°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#8A2242
RGBrgb(138, 34, 66)
HSLhsl(342, 60%, 34%)
HSVhsv(342, 75%, 54%)
CMYKcmyk(0%, 75.4%, 52.2%, 45.9%)
CIE-LABlab(31.68, 45.60, 6.69)
CIE-LCHlch(31.68, 46.09, 8.35°)
OKLaboklab(42.91% 0.139 0.0174)
OKLCHoklch(42.91% 0.14 7.1)
XYZxyz(12.0377, 6.9423, 5.8593)
Luminance0.0694 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2242 #228A6A
analogous
#8A2276 #8A2242 #8A3622
triadic
#8A2242 #428A22 #22428A
tetradic
#8A2242 #768A22 #228A6A #36228A
square
#8A2242 #768A22 #228A6A #36228A
split-complementary
#8A2242 #228A36 #22768A
monochromatic
#280A13 #59162B #8A2242 #BB2E59 #D4527A

Accessibility & contrast

On white

8.79
#8A2242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#8A2242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2242
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2242#FFFFFF#000000##FFFFFF
##8A22421.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3D43
Deuteranopia (green-blind)
#57523F
Tritanopia (blue-blind)
#970A2F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a2242;
/* rgb */ color: rgb(138, 34, 66);
/* oklch */ color: oklch(42.9% 0.140 7.1);
Tailwind
colors: {
  custom: {
    50: '#b16676',
    500: '#8a2242',
    950: '#000000',
  },
}
SCSS
$custom: #8a2242;
$custom-light: #b16676;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2242",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 341.538,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42907,
    "c": 0.14008,
    "h": 7.1
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#8A2242
secondary
#50B898
accent
#E4B344
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A2242

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

Preview Lab → · Contrast checker → · Palette generator →

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