#7F2140#7F2140

#7F2140 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.8% C 0.130 H 5.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#7F2140
RGBrgb(127, 33, 64)
HSLhsl(340, 59%, 31%)
HSVhsv(340, 74%, 50%)
CMYKcmyk(0%, 74%, 49.6%, 50.2%)
CIE-LABlab(29.34, 42.35, 4.40)
CIE-LCHlch(29.34, 42.58, 5.94°)
OKLaboklab(40.77% 0.1294 0.0117)
OKLCHoklch(40.77% 0.13 5.2)
XYZxyz(10.2225, 5.9713, 5.4638)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2140 #217F60
analogous
#7F216F #7F2140 #7F3121
triadic
#7F2140 #407F21 #21407F
tetradic
#7F2140 #6F7F21 #217F60 #31217F
square
#7F2140 #6F7F21 #217F60 #31217F
split-complementary
#7F2140 #217F31 #216F7F
monochromatic
#1E080F #4E1428 #7F2140 #B02E58 #D04A76

Accessibility & contrast

On white

9.57
#7F2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7F2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2140
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2140#FFFFFF#000000##FFFFFF
##7F21401.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373941
Deuteranopia (green-blind)
#504C3E
Tritanopia (blue-blind)
#8A102E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f2140;
/* rgb */ color: rgb(127, 33, 64);
/* oklch */ color: oklch(40.8% 0.130 5.2);
Tailwind
colors: {
  custom: {
    50: '#a96474',
    500: '#7f2140',
    950: '#000000',
  },
}
SCSS
$custom: #7f2140;
$custom-light: #a96474;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2140",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 340.213,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40769,
    "c": 0.12991,
    "h": 5.2
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#7F2140
secondary
#4AB290
accent
#E2AE46
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #7F2140

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

Preview Lab → · Contrast checker → · Palette generator →

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