#8A1F5A#8A1F5A

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

Color values

HEX#8A1F5A
RGBrgb(138, 31, 90)
HSLhsl(327, 63%, 33%)
HSVhsv(327, 78%, 54%)
CMYKcmyk(0%, 77.5%, 34.8%, 45.9%)
CIE-LABlab(32.09, 49.14, -8.43)
CIE-LCHlch(32.09, 49.86, 350.26°)
OKLaboklab(43.47% 0.1506 -0.0218)
OKLCHoklch(43.47% 0.152 351.8)
XYZxyz(12.8174, 7.1230, 10.3708)
Luminance0.0712 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F5A #1F8A4F
analogous
#841F8A #8A1F5A #8A1F24
triadic
#8A1F5A #5A8A1F #1F5A8A
tetradic
#8A1F5A #8A841F #1F8A4F #1F248A
square
#8A1F5A #8A841F #1F8A4F #1F248A
split-complementary
#8A1F5A #248A1F #1F8A84
monochromatic
#260919 #581439 #8A1F5A #BC2A7B #D74C99

Accessibility & contrast

On white

8.66
#8A1F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#8A1F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F5A
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F5A#FFFFFF#000000##FFFFFF
##8A1F5A1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323F5C
Deuteranopia (green-blind)
#515258
Tritanopia (blue-blind)
#95163A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8a1f5a;
/* rgb */ color: rgb(138, 31, 90);
/* oklch */ color: oklch(43.5% 0.152 351.8);
Tailwind
colors: {
  custom: {
    50: '#b06688',
    500: '#8a1f5a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f5a;
$custom-light: #b06688;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f5a",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 326.916,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43465,
    "c": 0.15215,
    "h": 351.8
  },
  "luminance": 0.07121
}

Semantic roles & 50–950 ramp

primary
#8A1F5A
secondary
#4BBA7D
accent
#E68B41
background
#FBF6F8
surface
#F6EBEF
border
#D0C6CA
text
#11060B
muted
#807A7C

Preview Lab

Preview with #8A1F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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