#8A1F71#8A1F71

#8A1F71 is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.5% C 0.166 H 339.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#8A1F71
RGBrgb(138, 31, 113)
HSLhsl(314, 63%, 33%)
HSVhsv(314, 78%, 54%)
CMYKcmyk(0%, 77.5%, 18.1%, 45.9%)
CIE-LABlab(33.09, 52.18, -21.67)
CIE-LCHlch(33.09, 56.50, 337.45°)
OKLaboklab(44.52% 0.1553 -0.0586)
OKLCHoklch(44.52% 0.166 339.3)
XYZxyz(13.9522, 7.5769, 16.3473)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F71 #1F8A38
analogous
#6D1F8A #8A1F71 #8A1F3B
triadic
#8A1F71 #718A1F #1F718A
tetradic
#8A1F71 #8A6D1F #1F8A38 #1F3B8A
square
#8A1F71 #8A6D1F #1F8A38 #1F3B8A
split-complementary
#8A1F71 #3B8A1F #1F8A6D
monochromatic
#26091F #581448 #8A1F71 #BC2A9A #D74CB7

Accessibility & contrast

On white

8.35
#8A1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8A1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F71
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F71#FFFFFF#000000##FFFFFF
##8A1F711.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264373
Deuteranopia (green-blind)
#49546F
Tritanopia (blue-blind)
#922346
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1f71;
/* rgb */ color: rgb(138, 31, 113);
/* oklch */ color: oklch(44.5% 0.166 339.3);
Tailwind
colors: {
  custom: {
    50: '#b0679a',
    500: '#8a1f71',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f71;
$custom-light: #b0679a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f71",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 314.019,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44518,
    "c": 0.16601,
    "h": 339.3
  },
  "luminance": 0.07576
}

Semantic roles & 50–950 ramp

primary
#8A1F71
secondary
#4BBA65
accent
#E66841
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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