#8A1B74#8A1B74

#8A1B74 is a dark, vivid pink. Relative luminance 0.074; OKLCH L 44.4% C 0.172 H 337.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#8A1B74
RGBrgb(138, 27, 116)
HSLhsl(312, 67%, 32%)
HSVhsv(312, 80%, 54%)
CMYKcmyk(0%, 80.4%, 15.9%, 45.9%)
CIE-LABlab(32.81, 53.84, -24.00)
CIE-LCHlch(32.81, 58.94, 335.97°)
OKLaboklab(44.37% 0.1593 -0.0653)
OKLCHoklch(44.37% 0.172 337.7)
XYZxyz(14.0259, 7.4495, 17.2188)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B74 #1B8A31
analogous
#691B8A #8A1B74 #8A1B3C
triadic
#8A1B74 #748A1B #1B748A
tetradic
#8A1B74 #8A691B #1B8A31 #1B3C8A
square
#8A1B74 #8A691B #1B8A31 #1B3C8A
split-complementary
#8A1B74 #3C8A1B #1B8A69
monochromatic
#24071E #571149 #8A1B74 #BD259F #DB45BD

Accessibility & contrast

On white

8.44
#8A1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#8A1B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B74
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B74#FFFFFF#000000##FFFFFF
##8A1B741.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204276
Deuteranopia (green-blind)
#475371
Tritanopia (blue-blind)
#922246
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1b74;
/* rgb */ color: rgb(138, 27, 116);
/* oklch */ color: oklch(44.4% 0.172 337.7);
Tailwind
colors: {
  custom: {
    50: '#b0659c',
    500: '#8a1b74',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b74;
$custom-light: #b0659c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b74",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 311.892,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44367,
    "c": 0.17218,
    "h": 337.7
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#8A1B74
secondary
#45BC5C
accent
#EA603E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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