#8A2040#8A2040

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

Color values

HEX#8A2040
RGBrgb(138, 32, 64)
HSLhsl(342, 62%, 33%)
HSVhsv(342, 77%, 54%)
CMYKcmyk(0%, 76.8%, 53.6%, 45.9%)
CIE-LABlab(31.37, 46.14, 7.57)
CIE-LCHlch(31.37, 46.76, 9.32°)
OKLaboklab(42.66% 0.1405 0.0195)
OKLCHoklch(42.66% 0.142 7.9)
XYZxyz(11.9242, 6.8081, 5.5357)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2040 #208A6A
analogous
#8A2075 #8A2040 #8A3520
triadic
#8A2040 #408A20 #20408A
tetradic
#8A2040 #758A20 #208A6A #35208A
square
#8A2040 #758A20 #208A6A #35208A
split-complementary
#8A2040 #208A35 #20758A
monochromatic
#270912 #581429 #8A2040 #BC2C57 #D64E77

Accessibility & contrast

On white

8.89
#8A2040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#8A2040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2040
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2040#FFFFFF#000000##FFFFFF
##8A20401.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3C41
Deuteranopia (green-blind)
#56523D
Tritanopia (blue-blind)
#97042D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a2040;
/* rgb */ color: rgb(138, 32, 64);
/* oklch */ color: oklch(42.7% 0.142 7.9);
Tailwind
colors: {
  custom: {
    50: '#b26674',
    500: '#8a2040',
    950: '#000000',
  },
}
SCSS
$custom: #8a2040;
$custom-light: #b26674;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2040",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 341.887,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42662,
    "c": 0.14184,
    "h": 7.9
  },
  "luminance": 0.06806
}

Semantic roles & 50–950 ramp

primary
#8A2040
secondary
#4DB998
accent
#E5B442
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A2040

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

Preview Lab → · Contrast checker → · Palette generator →

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