#8A1548#8A1548

#8A1548 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.0% C 0.154 H 1.1°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#8A1548
RGBrgb(138, 21, 72)
HSLhsl(334, 74%, 31%)
HSVhsv(334, 85%, 54%)
CMYKcmyk(0%, 84.8%, 47.8%, 45.9%)
CIE-LABlab(30.42, 50.18, 0.93)
CIE-LCHlch(30.42, 50.19, 1.06°)
OKLaboklab(42.04% 0.1543 0.0029)
OKLCHoklch(42.04% 0.154 1.1)
XYZxyz(11.9201, 6.4091, 6.7390)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1548 #158A57
analogous
#8A1582 #8A1548 #8A1C15
triadic
#8A1548 #488A15 #15488A
tetradic
#8A1548 #828A15 #158A57 #1C158A
square
#8A1548 #828A15 #158A57 #1C158A
split-complementary
#8A1548 #158A1C #15828A
monochromatic
#200511 #550D2C #8A1548 #BF1D64 #E13982

Accessibility & contrast

On white

9.20
#8A1548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#8A1548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1548
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1548#FFFFFF#000000##FFFFFF
##8A15481.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333949
Deuteranopia (green-blind)
#525045
Tritanopia (blue-blind)
#96002D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1548;
/* rgb */ color: rgb(138, 21, 72);
/* oklch */ color: oklch(42.0% 0.154 1.1);
Tailwind
colors: {
  custom: {
    50: '#b2627a',
    500: '#8a1548',
    950: '#000000',
  },
}
SCSS
$custom: #8a1548;
$custom-light: #b2627a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1548",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 333.846,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42043,
    "c": 0.1543,
    "h": 1.1
  },
  "luminance": 0.06407
}

Semantic roles & 50–950 ramp

primary
#8A1548
secondary
#3DBE86
accent
#F0A038
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120609
muted
#817A7B

Preview Lab

Preview with #8A1548

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

Preview Lab → · Contrast checker → · Palette generator →

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