#8A1F78#8A1F78

#8A1F78 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.9% C 0.171 H 335.9°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#8A1F78
RGBrgb(138, 31, 120)
HSLhsl(310, 63%, 33%)
HSVhsv(310, 78%, 54%)
CMYKcmyk(0%, 77.5%, 13%, 45.9%)
CIE-LABlab(33.44, 53.22, -25.54)
CIE-LCHlch(33.44, 59.04, 334.36°)
OKLaboklab(44.89% 0.1561 -0.0697)
OKLCHoklch(44.89% 0.171 335.9)
XYZxyz(14.3616, 7.7406, 18.5034)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F78 #1F8A31
analogous
#661F8A #8A1F78 #8A1F43
triadic
#8A1F78 #788A1F #1F788A
tetradic
#8A1F78 #8A661F #1F8A31 #1F438A
square
#8A1F78 #8A661F #1F8A31 #1F438A
split-complementary
#8A1F78 #438A1F #1F8A66
monochromatic
#260921 #58144D #8A1F78 #BC2AA3 #D74CC0

Accessibility & contrast

On white

8.24
#8A1F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F78
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F78#FFFFFF#000000##FFFFFF
##8A1F781.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20447A
Deuteranopia (green-blind)
#475476
Tritanopia (blue-blind)
#91274A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f78;
/* rgb */ color: rgb(138, 31, 120);
/* oklch */ color: oklch(44.9% 0.171 335.9);
Tailwind
colors: {
  custom: {
    50: '#b0679f',
    500: '#8a1f78',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f78;
$custom-light: #b0679f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f78",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 310.093,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44885,
    "c": 0.17093,
    "h": 335.9
  },
  "luminance": 0.07739
}

Semantic roles & 50–950 ramp

primary
#8A1F78
secondary
#4BBA5E
accent
#E65D41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1F78

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

Preview Lab → · Contrast checker → · Palette generator →

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