#8A1F48#8A1F48

#8A1F48 is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.8% C 0.145 H 2.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#8A1F48
RGBrgb(138, 31, 72)
HSLhsl(337, 63%, 33%)
HSVhsv(337, 78%, 54%)
CMYKcmyk(0%, 77.5%, 47.8%, 45.9%)
CIE-LABlab(31.47, 47.21, 2.44)
CIE-LCHlch(31.47, 47.27, 2.96°)
OKLaboklab(42.81% 0.1447 0.0068)
OKLCHoklch(42.81% 0.145 2.7)
XYZxyz(12.1419, 6.8528, 6.8130)
Luminance0.0685 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F48 #1F8A61
analogous
#8A1F7D #8A1F48 #8A2B1F
triadic
#8A1F48 #488A1F #1F488A
tetradic
#8A1F48 #7D8A1F #1F8A61 #2B1F8A
square
#8A1F48 #7D8A1F #1F8A61 #2B1F8A
split-complementary
#8A1F48 #1F8A2B #1F7D8A
monochromatic
#260914 #58142E #8A1F48 #BC2A62 #D74C82

Accessibility & contrast

On white

8.86
#8A1F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#8A1F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F48
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F48#FFFFFF#000000##FFFFFF
##8A1F481.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383D49
Deuteranopia (green-blind)
#555245
Tritanopia (blue-blind)
#960831
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a1f48;
/* rgb */ color: rgb(138, 31, 72);
/* oklch */ color: oklch(42.8% 0.145 2.7);
Tailwind
colors: {
  custom: {
    50: '#b1657a',
    500: '#8a1f48',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f48;
$custom-light: #b1657a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f48",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 337.009,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42812,
    "c": 0.14486,
    "h": 2.7
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#8A1F48
secondary
#4BBA8F
accent
#E6A741
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120609
muted
#817A7B

Preview Lab

Preview with #8A1F48

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

Preview Lab → · Contrast checker → · Palette generator →

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