#7F1A6D#7F1A6D

#7F1A6D is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.1% C 0.162 H 336.6°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7F1A6D
RGBrgb(127, 26, 109)
HSLhsl(311, 66%, 30%)
HSVhsv(311, 80%, 50%)
CMYKcmyk(0%, 79.5%, 14.2%, 50.2%)
CIE-LABlab(30.29, 50.47, -23.63)
CIE-LCHlch(30.29, 55.73, 334.91°)
OKLaboklab(42.06% 0.1485 -0.0644)
OKLCHoklch(42.06% 0.162 336.6)
XYZxyz(11.8823, 6.3561, 15.0661)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A6D #1A7F2C
analogous
#5E1A7F #7F1A6D #7F1A3B
triadic
#7F1A6D #6D7F1A #1A6D7F
tetradic
#7F1A6D #7F5E1A #1A7F2C #1A3B7F
square
#7F1A6D #7F5E1A #1A7F2C #1A3B7F
split-complementary
#7F1A6D #3B7F1A #1A7F5E
monochromatic
#190516 #4C1041 #7F1A6D #B22499 #D73CBC

Accessibility & contrast

On white

9.25
#7F1A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A6D
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A6D#FFFFFF#000000##FFFFFF
##7F1A6D1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3E6F
Deuteranopia (green-blind)
#404D6B
Tritanopia (blue-blind)
#862142
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1a6d;
/* rgb */ color: rgb(127, 26, 109);
/* oklch */ color: oklch(42.1% 0.162 336.6);
Tailwind
colors: {
  custom: {
    50: '#a86397',
    500: '#7f1a6d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a6d;
$custom-light: #a86397;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a6d",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 310.693,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.42058,
    "c": 0.16187,
    "h": 336.6
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#7F1A6D
secondary
#42B356
accent
#E95D3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F1A6D

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

Preview Lab → · Contrast checker → · Palette generator →

#7F1A6D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva