#7F2A52#7F2A52

#7F2A52 is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.4% C 0.124 H 354.6°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7F2A52
RGBrgb(127, 42, 82)
HSLhsl(332, 50%, 33%)
HSVhsv(332, 67%, 50%)
CMYKcmyk(0%, 66.9%, 35.4%, 50.2%)
CIE-LABlab(31.30, 40.56, -4.61)
CIE-LCHlch(31.30, 40.82, 353.51°)
OKLaboklab(42.41% 0.1239 -0.0117)
OKLCHoklch(42.41% 0.124 354.6)
XYZxyz(11.1040, 6.7784, 8.7046)
Luminance0.0678 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A52 #2A7F57
analogous
#7F2A7C #7F2A52 #7F2C2A
triadic
#7F2A52 #527F2A #2A527F
tetradic
#7F2A52 #7C7F2A #2A7F57 #2C2A7F
square
#7F2A52 #7C7F2A #2A7F57 #2C2A7F
split-complementary
#7F2A52 #2A7F2C #2A7C7F
monochromatic
#230C17 #511B34 #7F2A52 #AD3970 #C95B8E

Accessibility & contrast

On white

8.92
#7F2A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F2A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A52
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A52#FFFFFF#000000##FFFFFF
##7F2A521.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384053
Deuteranopia (green-blind)
#4F4F50
Tritanopia (blue-blind)
#89243A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f2a52;
/* rgb */ color: rgb(127, 42, 82);
/* oklch */ color: oklch(42.4% 0.124 354.6);
Tailwind
colors: {
  custom: {
    50: '#a86982',
    500: '#7f2a52',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a52;
$custom-light: #a86982;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a52",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 331.765,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.12442,
    "h": 354.6
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#7F2A52
secondary
#57AE85
accent
#DA984E
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10070A
muted
#7F7A7C

Preview Lab

Preview with #7F2A52

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

Preview Lab → · Contrast checker → · Palette generator →

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