#8A1F74#8A1F74

#8A1F74 is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.7% C 0.168 H 337.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#8A1F74
RGBrgb(138, 31, 116)
HSLhsl(312, 63%, 33%)
HSVhsv(312, 78%, 54%)
CMYKcmyk(0%, 77.5%, 15.9%, 45.9%)
CIE-LABlab(33.23, 52.62, -23.34)
CIE-LCHlch(33.23, 57.56, 336.08°)
OKLaboklab(44.67% 0.1557 -0.0634)
OKLCHoklch(44.67% 0.168 337.8)
XYZxyz(14.1239, 7.6456, 17.2515)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F74 #1F8A35
analogous
#6A1F8A #8A1F74 #8A1F3F
triadic
#8A1F74 #748A1F #1F748A
tetradic
#8A1F74 #8A6A1F #1F8A35 #1F3F8A
square
#8A1F74 #8A6A1F #1F8A35 #1F3F8A
split-complementary
#8A1F74 #3F8A1F #1F8A6A
monochromatic
#260920 #58144A #8A1F74 #BC2A9E #D74CBA

Accessibility & contrast

On white

8.30
#8A1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F74
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F74#FFFFFF#000000##FFFFFF
##8A1F741.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244476
Deuteranopia (green-blind)
#485472
Tritanopia (blue-blind)
#922547
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1f74;
/* rgb */ color: rgb(138, 31, 116);
/* oklch */ color: oklch(44.7% 0.168 337.8);
Tailwind
colors: {
  custom: {
    50: '#b0679c',
    500: '#8a1f74',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f74;
$custom-light: #b0679c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f74",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 312.336,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44673,
    "c": 0.16809,
    "h": 337.8
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#8A1F74
secondary
#4BBA62
accent
#E66341
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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