#8A1F72#8A1F72

#8A1F72 is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.6% C 0.167 H 338.8°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#8A1F72
RGBrgb(138, 31, 114)
HSLhsl(313, 63%, 33%)
HSVhsv(313, 78%, 54%)
CMYKcmyk(0%, 77.5%, 17.4%, 45.9%)
CIE-LABlab(33.13, 52.33, -22.23)
CIE-LCHlch(33.13, 56.85, 336.99°)
OKLaboklab(44.57% 0.1554 -0.0602)
OKLCHoklch(44.57% 0.167 338.8)
XYZxyz(14.0088, 7.5995, 16.6454)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F72 #1F8A37
analogous
#6C1F8A #8A1F72 #8A1F3C
triadic
#8A1F72 #728A1F #1F728A
tetradic
#8A1F72 #8A6C1F #1F8A37 #1F3C8A
square
#8A1F72 #8A6C1F #1F8A37 #1F3C8A
split-complementary
#8A1F72 #3C8A1F #1F8A6C
monochromatic
#26091F #581449 #8A1F72 #BC2A9B #D74CB8

Accessibility & contrast

On white

8.33
#8A1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F72
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F72#FFFFFF#000000##FFFFFF
##8A1F721.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254374
Deuteranopia (green-blind)
#495470
Tritanopia (blue-blind)
#922446
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1f72;
/* rgb */ color: rgb(138, 31, 114);
/* oklch */ color: oklch(44.6% 0.167 338.8);
Tailwind
colors: {
  custom: {
    50: '#b0679b',
    500: '#8a1f72',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f72;
$custom-light: #b0679b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f72",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 313.458,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44569,
    "c": 0.1667,
    "h": 338.8
  },
  "luminance": 0.07598
}

Semantic roles & 50–950 ramp

primary
#8A1F72
secondary
#4BBA64
accent
#E66641
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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