#8A1F6B#8A1F6B

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

Color values

HEX#8A1F6B
RGBrgb(138, 31, 107)
HSLhsl(317, 63%, 33%)
HSVhsv(317, 78%, 54%)
CMYKcmyk(0%, 77.5%, 22.5%, 45.9%)
CIE-LABlab(32.80, 51.33, -18.29)
CIE-LCHlch(32.80, 54.49, 340.39°)
OKLaboklab(44.22% 0.1544 -0.0491)
OKLCHoklch(44.22% 0.162 342.4)
XYZxyz(13.6255, 7.4462, 14.6268)
Luminance0.0745 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F6B #1F8A3E
analogous
#731F8A #8A1F6B #8A1F35
triadic
#8A1F6B #6B8A1F #1F6B8A
tetradic
#8A1F6B #8A731F #1F8A3E #1F358A
square
#8A1F6B #8A731F #1F8A3E #1F358A
split-complementary
#8A1F6B #358A1F #1F8A73
monochromatic
#26091E #581444 #8A1F6B #BC2A92 #D74CAF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1F6B#FFFFFF#000000##FFFFFF
##8A1F6B1.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)
#2A426D
Deuteranopia (green-blind)
#4C5369
Tritanopia (blue-blind)
#932043
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a1f6b;
/* rgb */ color: rgb(138, 31, 107);
/* oklch */ color: oklch(44.2% 0.162 342.4);
Tailwind
colors: {
  custom: {
    50: '#b06795',
    500: '#8a1f6b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f6b;
$custom-light: #b06795;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f6b",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 317.383,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4422,
    "c": 0.16201,
    "h": 342.4
  },
  "luminance": 0.07445
}

Semantic roles & 50–950 ramp

primary
#8A1F6B
secondary
#4BBA6B
accent
#E67141
background
#FBF6F9
surface
#F6EBF1
border
#D0C6CB
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A1F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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