#8A1542#8A1542

#8A1542 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.9% C 0.153 H 4.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#8A1542
RGBrgb(138, 21, 66)
HSLhsl(337, 74%, 31%)
HSVhsv(337, 85%, 54%)
CMYKcmyk(0%, 84.8%, 52.2%, 45.9%)
CIE-LABlab(30.24, 49.65, 4.66)
CIE-LCHlch(30.24, 49.87, 5.36°)
OKLaboklab(41.85% 0.1521 0.0123)
OKLCHoklch(41.85% 0.153 4.6)
XYZxyz(11.7338, 6.3346, 5.7580)
Luminance0.0633 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1542 #158A5D
analogous
#8A157C #8A1542 #8A2215
triadic
#8A1542 #428A15 #15428A
tetradic
#8A1542 #7C8A15 #158A5D #22158A
square
#8A1542 #7C8A15 #158A5D #22158A
split-complementary
#8A1542 #158A22 #157C8A
monochromatic
#20050F #550D29 #8A1542 #BF1D5B #E13979

Accessibility & contrast

On white

9.26
#8A1542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#8A1542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1542
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1542#FFFFFF#000000##FFFFFF
##8A15421.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353943
Deuteranopia (green-blind)
#534F3F
Tritanopia (blue-blind)
#97002A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8a1542;
/* rgb */ color: rgb(138, 21, 66);
/* oklch */ color: oklch(41.9% 0.153 4.6);
Tailwind
colors: {
  custom: {
    50: '#b26276',
    500: '#8a1542',
    950: '#000000',
  },
}
SCSS
$custom: #8a1542;
$custom-light: #b26276;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1542",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 336.923,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41852,
    "c": 0.15256,
    "h": 4.6
  },
  "luminance": 0.06333
}

Semantic roles & 50–950 ramp

primary
#8A1542
secondary
#3DBE8C
accent
#F0A938
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1542

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

Preview Lab → · Contrast checker → · Palette generator →

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