#8A1F42#8A1F42

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

Color values

HEX#8A1F42
RGBrgb(138, 31, 66)
HSLhsl(340, 63%, 33%)
HSVhsv(340, 78%, 54%)
CMYKcmyk(0%, 77.5%, 52.2%, 45.9%)
CIE-LABlab(31.30, 46.66, 6.16)
CIE-LCHlch(31.30, 47.06, 7.52°)
OKLaboklab(42.63% 0.1424 0.016)
OKLCHoklch(42.63% 0.143 6.4)
XYZxyz(11.9556, 6.7782, 5.8320)
Luminance0.0678 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F42 #1F8A67
analogous
#8A1F77 #8A1F42 #8A311F
triadic
#8A1F42 #428A1F #1F428A
tetradic
#8A1F42 #778A1F #1F8A67 #311F8A
square
#8A1F42 #778A1F #1F8A67 #311F8A
split-complementary
#8A1F42 #1F8A31 #1F778A
monochromatic
#260912 #58142A #8A1F42 #BC2A5A #D74C7A

Accessibility & contrast

On white

8.92
#8A1F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#8A1F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F42
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F42#FFFFFF#000000##FFFFFF
##8A1F421.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3C43
Deuteranopia (green-blind)
#56513F
Tritanopia (blue-blind)
#97032E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a1f42;
/* rgb */ color: rgb(138, 31, 66);
/* oklch */ color: oklch(42.6% 0.143 6.4);
Tailwind
colors: {
  custom: {
    50: '#b26576',
    500: '#8a1f42',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f42;
$custom-light: #b26576;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f42",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 340.374,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42628,
    "c": 0.14331,
    "h": 6.4
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#8A1F42
secondary
#4BBA95
accent
#E6B041
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1F42

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

Preview Lab → · Contrast checker → · Palette generator →

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