#8A1F77#8A1F77

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

Color values

HEX#8A1F77
RGBrgb(138, 31, 119)
HSLhsl(311, 63%, 33%)
HSVhsv(311, 78%, 54%)
CMYKcmyk(0%, 77.5%, 13.8%, 45.9%)
CIE-LABlab(33.39, 53.07, -24.99)
CIE-LCHlch(33.39, 58.66, 334.78°)
OKLaboklab(44.83% 0.156 -0.0681)
OKLCHoklch(44.83% 0.17 336.4)
XYZxyz(14.3012, 7.7165, 18.1854)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F77 #1F8A32
analogous
#671F8A #8A1F77 #8A1F41
triadic
#8A1F77 #778A1F #1F778A
tetradic
#8A1F77 #8A671F #1F8A32 #1F418A
square
#8A1F77 #8A671F #1F8A32 #1F418A
split-complementary
#8A1F77 #418A1F #1F8A67
monochromatic
#260921 #58144C #8A1F77 #BC2AA2 #D74CBE

Accessibility & contrast

On white

8.26
#8A1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F77
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F77#FFFFFF#000000##FFFFFF
##8A1F771.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214479
Deuteranopia (green-blind)
#475475
Tritanopia (blue-blind)
#912749
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1f77;
/* rgb */ color: rgb(138, 31, 119);
/* oklch */ color: oklch(44.8% 0.170 336.4);
Tailwind
colors: {
  custom: {
    50: '#b0679e',
    500: '#8a1f77',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f77;
$custom-light: #b0679e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f77",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 310.654,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44831,
    "c": 0.17021,
    "h": 336.4
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#8A1F77
secondary
#4BBA5F
accent
#E65F41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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