#7A1F4D#7A1F4D

#7A1F4D is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.1% C 0.132 H 353.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#7A1F4D
RGBrgb(122, 31, 77)
HSLhsl(330, 59%, 30%)
HSVhsv(330, 75%, 48%)
CMYKcmyk(0%, 74.6%, 36.9%, 52.2%)
CIE-LABlab(28.52, 42.99, -5.55)
CIE-LCHlch(28.52, 43.35, 352.64°)
OKLaboklab(40.13% 0.1317 -0.0141)
OKLCHoklch(40.13% 0.132 353.9)
XYZxyz(9.8562, 5.6545, 7.5921)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F4D #1F7A4C
analogous
#791F7A #7A1F4D #7A1F20
triadic
#7A1F4D #4D7A1F #1F4D7A
tetradic
#7A1F4D #7A791F #1F7A4C #1F207A
square
#7A1F4D #7A791F #1F7A4C #1F207A
split-complementary
#7A1F4D #207A1F #1F7A79
monochromatic
#18060F #49132E #7A1F4D #AB2B6C #CF448A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A1F4D#FFFFFF#000000##FFFFFF
##7A1F4D1.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)
#2F394E
Deuteranopia (green-blind)
#49494B
Tritanopia (blue-blind)
#841733
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a1f4d;
/* rgb */ color: rgb(122, 31, 77);
/* oklch */ color: oklch(40.1% 0.132 353.9);
Tailwind
colors: {
  custom: {
    50: '#a4637e',
    500: '#7a1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f4d;
$custom-light: #a4637e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f4d",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 329.67,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.13249,
    "h": 353.9
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#7A1F4D
secondary
#47AD7A
accent
#E39345
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7A1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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