#7F2240#7F2240

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

Color values

HEX#7F2240
RGBrgb(127, 34, 64)
HSLhsl(341, 58%, 32%)
HSVhsv(341, 73%, 50%)
CMYKcmyk(0%, 73.2%, 49.6%, 50.2%)
CIE-LABlab(29.48, 41.96, 4.61)
CIE-LCHlch(29.48, 42.21, 6.27°)
OKLaboklab(40.87% 0.1281 0.0122)
OKLCHoklch(40.87% 0.129 5.4)
XYZxyz(10.2507, 6.0276, 5.4731)
Luminance0.0603 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2240 #227F61
analogous
#7F226F #7F2240 #7F3322
triadic
#7F2240 #407F22 #22407F
tetradic
#7F2240 #6F7F22 #227F61 #33227F
square
#7F2240 #6F7F22 #227F61 #33227F
split-complementary
#7F2240 #227F33 #226F7F
monochromatic
#1E080F #4F1528 #7F2240 #AF2F58 #CF4C76

Accessibility & contrast

On white

9.52
#7F2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7F2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2240
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2240#FFFFFF#000000##FFFFFF
##7F22401.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373A41
Deuteranopia (green-blind)
#504C3E
Tritanopia (blue-blind)
#8A112E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f2240;
/* rgb */ color: rgb(127, 34, 64);
/* oklch */ color: oklch(40.9% 0.129 5.4);
Tailwind
colors: {
  custom: {
    50: '#a96574',
    500: '#7f2240',
    950: '#000000',
  },
}
SCSS
$custom: #7f2240;
$custom-light: #a96574;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2240",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 340.645,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40874,
    "c": 0.12869,
    "h": 5.4
  },
  "luminance": 0.06026
}

Semantic roles & 50–950 ramp

primary
#7F2240
secondary
#4BB291
accent
#E1AF47
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #7F2240

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

Preview Lab → · Contrast checker → · Palette generator →

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