#8A1F6A#8A1F6A

#8A1F6A is a dark, vivid pink. Relative luminance 0.074; OKLCH L 44.2% C 0.161 H 342.9°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#8A1F6A
RGBrgb(138, 31, 106)
HSLhsl(318, 63%, 33%)
HSVhsv(318, 78%, 54%)
CMYKcmyk(0%, 77.5%, 23.2%, 45.9%)
CIE-LABlab(32.76, 51.19, -17.72)
CIE-LCHlch(32.76, 54.17, 340.91°)
OKLaboklab(44.17% 0.1542 -0.0475)
OKLCHoklch(44.17% 0.161 342.9)
XYZxyz(13.5732, 7.4253, 14.3513)
Luminance0.0742 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F6A #1F8A3F
analogous
#741F8A #8A1F6A #8A1F34
triadic
#8A1F6A #6A8A1F #1F6A8A
tetradic
#8A1F6A #8A741F #1F8A3F #1F348A
square
#8A1F6A #8A741F #1F8A3F #1F348A
split-complementary
#8A1F6A #348A1F #1F8A74
monochromatic
#26091D #581444 #8A1F6A #BC2A90 #D74CAE

Accessibility & contrast

On white

8.45
#8A1F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#8A1F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F6A
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F6A#FFFFFF#000000##FFFFFF
##8A1F6A1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A426C
Deuteranopia (green-blind)
#4C5368
Tritanopia (blue-blind)
#932042
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1f6a;
/* rgb */ color: rgb(138, 31, 106);
/* oklch */ color: oklch(44.2% 0.161 342.9);
Tailwind
colors: {
  custom: {
    50: '#b06794',
    500: '#8a1f6a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f6a;
$custom-light: #b06794;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f6a",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 317.944,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44172,
    "c": 0.16137,
    "h": 342.9
  },
  "luminance": 0.07424
}

Semantic roles & 50–950 ramp

primary
#8A1F6A
secondary
#4BBA6C
accent
#E67341
background
#FBF6F9
surface
#F6EBF1
border
#D0C6CB
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A1F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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