#8A1E42#8A1E42

#8A1E42 is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.5% C 0.144 H 6.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#8A1E42
RGBrgb(138, 30, 66)
HSLhsl(340, 64%, 33%)
HSVhsv(340, 78%, 54%)
CMYKcmyk(0%, 78.3%, 52.2%, 45.9%)
CIE-LABlab(31.18, 47.00, 5.99)
CIE-LCHlch(31.18, 47.38, 7.26°)
OKLaboklab(42.54% 0.1435 0.0156)
OKLCHoklch(42.54% 0.144 6.2)
XYZxyz(11.9299, 6.7268, 5.8234)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E42 #1E8A66
analogous
#8A1E78 #8A1E42 #8A301E
triadic
#8A1E42 #428A1E #1E428A
tetradic
#8A1E42 #788A1E #1E8A66 #301E8A
square
#8A1E42 #788A1E #1E8A66 #301E8A
split-complementary
#8A1E42 #1E8A30 #1E788A
monochromatic
#250812 #58132A #8A1E42 #BC295A #D84B7A

Accessibility & contrast

On white

8.96
#8A1E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#8A1E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E42
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E42#FFFFFF#000000##FFFFFF
##8A1E421.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393C43
Deuteranopia (green-blind)
#56513F
Tritanopia (blue-blind)
#97012D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1e42;
/* rgb */ color: rgb(138, 30, 66);
/* oklch */ color: oklch(42.5% 0.144 6.2);
Tailwind
colors: {
  custom: {
    50: '#b26576',
    500: '#8a1e42',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e42;
$custom-light: #b26576;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e42",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 66
  },
  "hsl": {
    "h": 340,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4254,
    "c": 0.14434,
    "h": 6.2
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#8A1E42
secondary
#4ABA95
accent
#E7B041
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1E42

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

Preview Lab → · Contrast checker → · Palette generator →

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