#8A1F6C#8A1F6C

#8A1F6C is a dark, vivid pink. Relative luminance 0.075; OKLCH L 44.3% C 0.163 H 341.8°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#8A1F6C
RGBrgb(138, 31, 108)
HSLhsl(317, 63%, 33%)
HSVhsv(317, 78%, 54%)
CMYKcmyk(0%, 77.5%, 21.7%, 45.9%)
CIE-LABlab(32.85, 51.47, -18.86)
CIE-LCHlch(32.85, 54.81, 339.88°)
OKLaboklab(44.27% 0.1546 -0.0507)
OKLCHoklch(44.27% 0.163 341.8)
XYZxyz(13.6785, 7.4674, 14.9054)
Luminance0.0747 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F6C #1F8A3D
analogous
#721F8A #8A1F6C #8A1F37
triadic
#8A1F6C #6C8A1F #1F6C8A
tetradic
#8A1F6C #8A721F #1F8A3D #1F378A
square
#8A1F6C #8A721F #1F8A3D #1F378A
split-complementary
#8A1F6C #378A1F #1F8A72
monochromatic
#26091E #581445 #8A1F6C #BC2A93 #D74CB0

Accessibility & contrast

On white

8.42
#8A1F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F6C
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F6C#FFFFFF#000000##FFFFFF
##8A1F6C1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29426E
Deuteranopia (green-blind)
#4B536A
Tritanopia (blue-blind)
#932143
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1f6c;
/* rgb */ color: rgb(138, 31, 108);
/* oklch */ color: oklch(44.3% 0.163 341.8);
Tailwind
colors: {
  custom: {
    50: '#b06796',
    500: '#8a1f6c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f6c;
$custom-light: #b06796;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f6c",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 316.822,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44269,
    "c": 0.16267,
    "h": 341.8
  },
  "luminance": 0.07466
}

Semantic roles & 50–950 ramp

primary
#8A1F6C
secondary
#4BBA6A
accent
#E67041
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A1F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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