#8A1F6F#8A1F6F

#8A1F6F is a dark, vivid pink. Relative luminance 0.075; OKLCH L 44.4% C 0.165 H 340.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#8A1F6F
RGBrgb(138, 31, 111)
HSLhsl(315, 63%, 33%)
HSVhsv(315, 78%, 54%)
CMYKcmyk(0%, 77.5%, 19.6%, 45.9%)
CIE-LABlab(32.99, 51.89, -20.55)
CIE-LCHlch(32.99, 55.81, 338.40°)
OKLaboklab(44.42% 0.155 -0.0555)
OKLCHoklch(44.42% 0.165 340.3)
XYZxyz(13.8409, 7.5323, 15.7608)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F6F #1F8A3A
analogous
#6F1F8A #8A1F6F #8A1F39
triadic
#8A1F6F #6F8A1F #1F6F8A
tetradic
#8A1F6F #8A6F1F #1F8A3A #1F398A
square
#8A1F6F #8A6F1F #1F8A3A #1F398A
split-complementary
#8A1F6F #398A1F #1F8A6F
monochromatic
#26091F #581447 #8A1F6F #BC2A97 #D74CB4

Accessibility & contrast

On white

8.38
#8A1F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#8A1F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F6F
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F6F#FFFFFF#000000##FFFFFF
##8A1F6F1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274371
Deuteranopia (green-blind)
#4A546D
Tritanopia (blue-blind)
#932245
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1f6f;
/* rgb */ color: rgb(138, 31, 111);
/* oklch */ color: oklch(44.4% 0.165 340.3);
Tailwind
colors: {
  custom: {
    50: '#b06798',
    500: '#8a1f6f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f6f;
$custom-light: #b06798;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f6f",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 315.14,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44417,
    "c": 0.16465,
    "h": 340.3
  },
  "luminance": 0.07531
}

Semantic roles & 50–950 ramp

primary
#8A1F6F
secondary
#4BBA67
accent
#E66B41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8A1F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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