#8A1F40#8A1F40

#8A1F40 is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.6% C 0.143 H 7.7°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#8A1F40
RGBrgb(138, 31, 64)
HSLhsl(341, 63%, 33%)
HSVhsv(341, 78%, 54%)
CMYKcmyk(0%, 77.5%, 53.6%, 45.9%)
CIE-LABlab(31.24, 46.49, 7.40)
CIE-LCHlch(31.24, 47.07, 9.05°)
OKLaboklab(42.57% 0.1416 0.0191)
OKLCHoklch(42.57% 0.143 7.7)
XYZxyz(11.8977, 6.7551, 5.5269)
Luminance0.0675 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F40 #1F8A69
analogous
#8A1F75 #8A1F40 #8A331F
triadic
#8A1F40 #408A1F #1F408A
tetradic
#8A1F40 #758A1F #1F8A69 #331F8A
square
#8A1F40 #758A1F #1F8A69 #331F8A
split-complementary
#8A1F40 #1F8A33 #1F758A
monochromatic
#260912 #581429 #8A1F40 #BC2A57 #D74C77

Accessibility & contrast

On white

8.93
#8A1F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F40
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F40#FFFFFF#000000##FFFFFF
##8A1F401.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3C41
Deuteranopia (green-blind)
#56513D
Tritanopia (blue-blind)
#97012D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1f40;
/* rgb */ color: rgb(138, 31, 64);
/* oklch */ color: oklch(42.6% 0.143 7.7);
Tailwind
colors: {
  custom: {
    50: '#b26574',
    500: '#8a1f40',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f40;
$custom-light: #b26574;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f40",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 341.495,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42571,
    "c": 0.1429,
    "h": 7.7
  },
  "luminance": 0.06753
}

Semantic roles & 50–950 ramp

primary
#8A1F40
secondary
#4BBA98
accent
#E6B341
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1F40

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

Preview Lab → · Contrast checker → · Palette generator →

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