#7F2540#7F2540

#7F2540 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.2% C 0.125 H 6.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#7F2540
RGBrgb(127, 37, 64)
HSLhsl(342, 55%, 32%)
HSVhsv(342, 71%, 50%)
CMYKcmyk(0%, 70.9%, 49.6%, 50.2%)
CIE-LABlab(29.93, 40.72, 5.24)
CIE-LCHlch(29.93, 41.06, 7.33°)
OKLaboklab(41.2% 0.1242 0.0138)
OKLCHoklch(41.2% 0.125 6.3)
XYZxyz(10.3402, 6.2067, 5.5030)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2540 #257F64
analogous
#7F256D #7F2540 #7F3725
triadic
#7F2540 #407F25 #25407F
tetradic
#7F2540 #6D7F25 #257F64 #37257F
square
#7F2540 #6D7F25 #257F64 #37257F
split-complementary
#7F2540 #257F37 #256D7F
monochromatic
#200910 #501728 #7F2540 #AE3358 #CD5277

Accessibility & contrast

On white

9.37
#7F2540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F2540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2540
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2540#FFFFFF#000000##FFFFFF
##7F25401.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393B41
Deuteranopia (green-blind)
#514D3E
Tritanopia (blue-blind)
#8A1630
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f2540;
/* rgb */ color: rgb(127, 37, 64);
/* oklch */ color: oklch(41.2% 0.125 6.3);
Tailwind
colors: {
  custom: {
    50: '#a96674',
    500: '#7f2540',
    950: '#000000',
  },
}
SCSS
$custom: #7f2540;
$custom-light: #a96674;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2540",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 342,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41204,
    "c": 0.12494,
    "h": 6.3
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#7F2540
secondary
#4FB193
accent
#DEB24A
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7F2540

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

Preview Lab → · Contrast checker → · Palette generator →

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