#8A1F5B#8A1F5B

#8A1F5B is a dark, vivid pink. Relative luminance 0.071; OKLCH L 43.5% C 0.153 H 351.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#8A1F5B
RGBrgb(138, 31, 91)
HSLhsl(326, 63%, 33%)
HSVhsv(326, 78%, 54%)
CMYKcmyk(0%, 77.5%, 34.1%, 45.9%)
CIE-LABlab(32.12, 49.26, -9.02)
CIE-LCHlch(32.12, 50.08, 349.62°)
OKLaboklab(43.51% 0.1509 -0.0234)
OKLCHoklch(43.51% 0.153 351.2)
XYZxyz(12.8603, 7.1401, 10.5964)
Luminance0.0714 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F5B #1F8A4E
analogous
#831F8A #8A1F5B #8A1F25
triadic
#8A1F5B #5B8A1F #1F5B8A
tetradic
#8A1F5B #8A831F #1F8A4E #1F258A
square
#8A1F5B #8A831F #1F8A4E #1F258A
split-complementary
#8A1F5B #258A1F #1F8A83
monochromatic
#260919 #58143A #8A1F5B #BC2A7C #D74C9A

Accessibility & contrast

On white

8.65
#8A1F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#8A1F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F5B
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F5B#FFFFFF#000000##FFFFFF
##8A1F5B1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323F5D
Deuteranopia (green-blind)
#515259
Tritanopia (blue-blind)
#95163A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1f5b;
/* rgb */ color: rgb(138, 31, 91);
/* oklch */ color: oklch(43.5% 0.153 351.2);
Tailwind
colors: {
  custom: {
    50: '#b06689',
    500: '#8a1f5b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f5b;
$custom-light: #b06689;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f5b",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 326.355,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43505,
    "c": 0.15265,
    "h": 351.2
  },
  "luminance": 0.07139
}

Semantic roles & 50–950 ramp

primary
#8A1F5B
secondary
#4BBA7C
accent
#E68A41
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060B
muted
#807A7C

Preview Lab

Preview with #8A1F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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