#7A1F52#7A1F52

#7A1F52 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.3% C 0.135 H 350.5°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#7A1F52
RGBrgb(122, 31, 82)
HSLhsl(326, 59%, 30%)
HSVhsv(326, 75%, 48%)
CMYKcmyk(0%, 74.6%, 32.8%, 52.2%)
CIE-LABlab(28.72, 43.62, -8.58)
CIE-LCHlch(28.72, 44.45, 348.88°)
OKLaboklab(40.33% 0.1332 -0.0223)
OKLCHoklch(40.33% 0.135 350.5)
XYZxyz(10.0396, 5.7279, 8.5579)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F52 #1F7A47
analogous
#751F7A #7A1F52 #7A1F24
triadic
#7A1F52 #527A1F #1F527A
tetradic
#7A1F52 #7A751F #1F7A47 #1F247A
square
#7A1F52 #7A751F #1F7A47 #1F247A
split-complementary
#7A1F52 #247A1F #1F7A75
monochromatic
#180610 #491331 #7A1F52 #AB2B73 #CF4492

Accessibility & contrast

On white

9.79
#7A1F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7A1F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F52
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F52#FFFFFF#000000##FFFFFF
##7A1F521.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3953
Deuteranopia (green-blind)
#484A50
Tritanopia (blue-blind)
#831935
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a1f52;
/* rgb */ color: rgb(122, 31, 82);
/* oklch */ color: oklch(40.3% 0.135 350.5);
Tailwind
colors: {
  custom: {
    50: '#a46382',
    500: '#7a1f52',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f52;
$custom-light: #a46382;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f52",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 326.374,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.40332,
    "c": 0.13507,
    "h": 350.5
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#7A1F52
secondary
#47AD74
accent
#E38A45
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7A1F52

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

Preview Lab → · Contrast checker → · Palette generator →

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