#8A1538#8A1538

#8A1538 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.6% C 0.151 H 10.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#8A1538
RGBrgb(138, 21, 56)
HSLhsl(342, 74%, 31%)
HSVhsv(342, 85%, 54%)
CMYKcmyk(0%, 84.8%, 59.4%, 45.9%)
CIE-LABlab(29.98, 48.86, 10.96)
CIE-LCHlch(29.98, 50.08, 12.64°)
OKLaboklab(41.57% 0.1481 0.0274)
OKLCHoklch(41.57% 0.151 10.5)
XYZxyz(11.4644, 6.2268, 4.3389)
Luminance0.0622 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1538 #158A67
analogous
#8A1572 #8A1538 #8A2C15
triadic
#8A1538 #388A15 #15388A
tetradic
#8A1538 #728A15 #158A67 #2C158A
square
#8A1538 #728A15 #158A67 #2C158A
split-complementary
#8A1538 #158A2C #15728A
monochromatic
#20050D #550D22 #8A1538 #BF1D4E #E1396B

Accessibility & contrast

On white

9.35
#8A1538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#8A1538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1538
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1538#FFFFFF#000000##FFFFFF
##8A15381.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373839
Deuteranopia (green-blind)
#554F35
Tritanopia (blue-blind)
#970025
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8a1538;
/* rgb */ color: rgb(138, 21, 56);
/* oklch */ color: oklch(41.6% 0.151 10.5);
Tailwind
colors: {
  custom: {
    50: '#b3616e',
    500: '#8a1538',
    950: '#000000',
  },
}
SCSS
$custom: #8a1538;
$custom-light: #b3616e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1538",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 342.051,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41572,
    "c": 0.15061,
    "h": 10.5
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#8A1538
secondary
#3DBE97
accent
#F0B938
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#120607
muted
#817A7A

Preview Lab

Preview with #8A1538

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

Preview Lab → · Contrast checker → · Palette generator →

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