#8A1F76#8A1F76

#8A1F76 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.8% C 0.170 H 336.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#8A1F76
RGBrgb(138, 31, 118)
HSLhsl(311, 63%, 33%)
HSVhsv(311, 78%, 54%)
CMYKcmyk(0%, 77.5%, 14.5%, 45.9%)
CIE-LABlab(33.33, 52.92, -24.44)
CIE-LCHlch(33.33, 58.29, 335.21°)
OKLaboklab(44.78% 0.1559 -0.0665)
OKLCHoklch(44.78% 0.17 336.9)
XYZxyz(14.2415, 7.6926, 17.8708)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F76 #1F8A33
analogous
#681F8A #8A1F76 #8A1F40
triadic
#8A1F76 #768A1F #1F768A
tetradic
#8A1F76 #8A681F #1F8A33 #1F408A
square
#8A1F76 #8A681F #1F8A33 #1F408A
split-complementary
#8A1F76 #408A1F #1F8A68
monochromatic
#260921 #58144B #8A1F76 #BC2AA1 #D74CBD

Accessibility & contrast

On white

8.27
#8A1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F76
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F76#FFFFFF#000000##FFFFFF
##8A1F761.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224478
Deuteranopia (green-blind)
#475474
Tritanopia (blue-blind)
#922649
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1f76;
/* rgb */ color: rgb(138, 31, 118);
/* oklch */ color: oklch(44.8% 0.170 336.9);
Tailwind
colors: {
  custom: {
    50: '#b0679e',
    500: '#8a1f76',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f76;
$custom-light: #b0679e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f76",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 311.215,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44778,
    "c": 0.1695,
    "h": 336.9
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#8A1F76
secondary
#4BBA60
accent
#E66041
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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