#7C2540#7C2540

#7C2540 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.7% C 0.122 H 5.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#7C2540
RGBrgb(124, 37, 64)
HSLhsl(341, 54%, 32%)
HSVhsv(341, 70%, 49%)
CMYKcmyk(0%, 70.2%, 48.4%, 51.4%)
CIE-LABlab(29.36, 39.73, 4.36)
CIE-LCHlch(29.36, 39.97, 6.26°)
OKLaboklab(40.68% 0.1212 0.0116)
OKLCHoklch(40.68% 0.122 5.4)
XYZxyz(9.8999, 5.9796, 5.4824)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2540 #257C61
analogous
#7C256C #7C2540 #7C3625
triadic
#7C2540 #407C25 #25407C
tetradic
#7C2540 #6C7C25 #257C61 #36257C
square
#7C2540 #6C7C25 #257C61 #36257C
split-complementary
#7C2540 #257C36 #256C7C
monochromatic
#1E090F #4D1728 #7C2540 #AB3358 #CB5076

Accessibility & contrast

On white

9.56
#7C2540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7C2540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2540
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2540#FFFFFF#000000##FFFFFF
##7C25401.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383A41
Deuteranopia (green-blind)
#4F4C3E
Tritanopia (blue-blind)
#871830
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c2540;
/* rgb */ color: rgb(124, 37, 64);
/* oklch */ color: oklch(40.7% 0.122 5.4);
Tailwind
colors: {
  custom: {
    50: '#a66674',
    500: '#7c2540',
    950: '#000000',
  },
}
SCSS
$custom: #7c2540;
$custom-light: #a66674;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2540",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 341.379,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40678,
    "c": 0.12179,
    "h": 5.4
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

primary
#7C2540
secondary
#4FAE91
accent
#DDB04A
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7C2540

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

Preview Lab → · Contrast checker → · Palette generator →

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