#8A1F6D#8A1F6D

#8A1F6D is a dark, vivid pink. Relative luminance 0.075; OKLCH L 44.3% C 0.163 H 341.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#8A1F6D
RGBrgb(138, 31, 109)
HSLhsl(316, 63%, 33%)
HSVhsv(316, 78%, 54%)
CMYKcmyk(0%, 77.5%, 21%, 45.9%)
CIE-LABlab(32.89, 51.61, -19.42)
CIE-LCHlch(32.89, 55.14, 339.38°)
OKLaboklab(44.32% 0.1547 -0.0523)
OKLCHoklch(44.32% 0.163 341.3)
XYZxyz(13.7320, 7.4888, 15.1873)
Luminance0.0749 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F6D #1F8A3C
analogous
#711F8A #8A1F6D #8A1F37
triadic
#8A1F6D #6D8A1F #1F6D8A
tetradic
#8A1F6D #8A711F #1F8A3C #1F378A
square
#8A1F6D #8A711F #1F8A3C #1F378A
split-complementary
#8A1F6D #378A1F #1F8A71
monochromatic
#26091E #581446 #8A1F6D #BC2A94 #D74CB1

Accessibility & contrast

On white

8.41
#8A1F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#8A1F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F6D
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F6D#FFFFFF#000000##FFFFFF
##8A1F6D1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29426F
Deuteranopia (green-blind)
#4B546B
Tritanopia (blue-blind)
#932144
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1f6d;
/* rgb */ color: rgb(138, 31, 109);
/* oklch */ color: oklch(44.3% 0.163 341.3);
Tailwind
colors: {
  custom: {
    50: '#b06797',
    500: '#8a1f6d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f6d;
$custom-light: #b06797;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f6d",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 316.262,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44317,
    "c": 0.16332,
    "h": 341.3
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#8A1F6D
secondary
#4BBA69
accent
#E66E41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A1F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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