#7F2242#7F2242

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

Color values

HEX#7F2242
RGBrgb(127, 34, 66)
HSLhsl(339, 58%, 32%)
HSVhsv(339, 73%, 50%)
CMYKcmyk(0%, 73.2%, 48%, 50.2%)
CIE-LABlab(29.54, 42.15, 3.36)
CIE-LCHlch(29.54, 42.29, 4.56°)
OKLaboklab(40.94% 0.1289 0.0091)
OKLCHoklch(40.94% 0.129 4)
XYZxyz(10.3086, 6.0508, 5.7783)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2242 #227F5F
analogous
#7F2271 #7F2242 #7F3122
triadic
#7F2242 #427F22 #22427F
tetradic
#7F2242 #717F22 #227F5F #31227F
square
#7F2242 #717F22 #227F5F #31227F
split-complementary
#7F2242 #227F31 #22717F
monochromatic
#1E0810 #4F1529 #7F2242 #AF2F5B #CF4C79

Accessibility & contrast

On white

9.50
#7F2242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2242
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2242#FFFFFF#000000##FFFFFF
##7F22421.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373A43
Deuteranopia (green-blind)
#504C40
Tritanopia (blue-blind)
#8A132F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f2242;
/* rgb */ color: rgb(127, 34, 66);
/* oklch */ color: oklch(40.9% 0.129 4.0);
Tailwind
colors: {
  custom: {
    50: '#a96576',
    500: '#7f2242',
    950: '#000000',
  },
}
SCSS
$custom: #7f2242;
$custom-light: #a96576;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2242",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 339.355,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40936,
    "c": 0.12921,
    "h": 4
  },
  "luminance": 0.06049
}

Semantic roles & 50–950 ramp

primary
#7F2242
secondary
#4BB28E
accent
#E1AC47
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7F2242

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

Preview Lab → · Contrast checker → · Palette generator →

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