#7F1A42#7F1A42

#7F1A42 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.2% C 0.138 H 2.2°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#7F1A42
RGBrgb(127, 26, 66)
HSLhsl(336, 66%, 30%)
HSVhsv(336, 80%, 50%)
CMYKcmyk(0%, 79.5%, 48%, 50.2%)
CIE-LABlab(28.50, 45.06, 1.86)
CIE-LCHlch(28.50, 45.10, 2.36°)
OKLaboklab(40.17% 0.1382 0.0053)
OKLCHoklch(40.17% 0.138 2.2)
XYZxyz(10.1060, 5.6455, 5.7107)
Luminance0.0564 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A42 #1A7F57
analogous
#7F1A74 #7F1A42 #7F251A
triadic
#7F1A42 #427F1A #1A427F
tetradic
#7F1A42 #747F1A #1A7F57 #251A7F
square
#7F1A42 #747F1A #1A7F57 #251A7F
split-complementary
#7F1A42 #1A7F25 #1A747F
monochromatic
#19050D #4C1028 #7F1A42 #B2245C #D73C7A

Accessibility & contrast

On white

9.86
#7F1A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7F1A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A42
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A42#FFFFFF#000000##FFFFFF
##7F1A421.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323743
Deuteranopia (green-blind)
#4D4A40
Tritanopia (blue-blind)
#8A032C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1a42;
/* rgb */ color: rgb(127, 26, 66);
/* oklch */ color: oklch(40.2% 0.138 2.2);
Tailwind
colors: {
  custom: {
    50: '#a96176',
    500: '#7f1a42',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a42;
$custom-light: #a96176;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a42",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 336.238,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.40169,
    "c": 0.13833,
    "h": 2.2
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#7F1A42
secondary
#42B386
accent
#E9A63F
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#110508
muted
#807A7B

Preview Lab

Preview with #7F1A42

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

Preview Lab → · Contrast checker → · Palette generator →

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