#7D2040#7D2040

#7D2040 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.3% C 0.129 H 4.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#7D2040
RGBrgb(125, 32, 64)
HSLhsl(339, 59%, 31%)
HSVhsv(339, 74%, 49%)
CMYKcmyk(0%, 74.4%, 48.8%, 51%)
CIE-LABlab(28.81, 42.11, 3.59)
CIE-LCHlch(28.81, 42.26, 4.88°)
OKLaboklab(40.31% 0.1288 0.0096)
OKLCHoklch(40.31% 0.129 4.3)
XYZxyz(9.9002, 5.7645, 5.4408)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2040 #207D5D
analogous
#7D206E #7D2040 #7D2E20
triadic
#7D2040 #407D20 #20407D
tetradic
#7D2040 #6E7D20 #207D5D #2E207D
square
#7D2040 #6E7D20 #207D5D #2E207D
split-complementary
#7D2040 #207D2E #206E7D
monochromatic
#1C070E #4C1427 #7D2040 #AE2C59 #D04776

Accessibility & contrast

On white

9.76
#7D2040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2040
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2040#FFFFFF#000000##FFFFFF
##7D20401.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353841
Deuteranopia (green-blind)
#4E4B3E
Tritanopia (blue-blind)
#880F2D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7d2040;
/* rgb */ color: rgb(125, 32, 64);
/* oklch */ color: oklch(40.3% 0.129 4.3);
Tailwind
colors: {
  custom: {
    50: '#a76474',
    500: '#7d2040',
    950: '#000000',
  },
}
SCSS
$custom: #7d2040;
$custom-light: #a76474;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2040",
  "rgb": {
    "r": 125,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 339.355,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40306,
    "c": 0.12911,
    "h": 4.3
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#7D2040
secondary
#49B08C
accent
#E2AC45
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7D2040

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

Preview Lab → · Contrast checker → · Palette generator →

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