#7E1F48#7E1F48

#7E1F48 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.7% C 0.134 H 358.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#7E1F48
RGBrgb(126, 31, 72)
HSLhsl(334, 61%, 31%)
HSVhsv(334, 75%, 49%)
CMYKcmyk(0%, 75.4%, 42.9%, 50.6%)
CIE-LABlab(29.12, 43.62, -1.26)
CIE-LCHlch(29.12, 43.64, 358.34°)
OKLaboklab(40.65% 0.1339 -0.0028)
OKLCHoklch(40.65% 0.134 358.8)
XYZxyz(10.2646, 5.8848, 6.7250)
Luminance0.0588 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F48 #1F7E55
analogous
#7E1F77 #7E1F48 #7E251F
triadic
#7E1F48 #487E1F #1F487E
tetradic
#7E1F48 #777E1F #1F7E55 #251F7E
square
#7E1F48 #777E1F #1F7E55 #251F7E
split-complementary
#7E1F48 #1F7E25 #1F777E
monochromatic
#1C0710 #4D132C #7E1F48 #AF2B64 #D14682

Accessibility & contrast

On white

9.65
#7E1F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7E1F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F48
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F48#FFFFFF#000000##FFFFFF
##7E1F481.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333949
Deuteranopia (green-blind)
#4D4B46
Tritanopia (blue-blind)
#891231
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1f48;
/* rgb */ color: rgb(126, 31, 72);
/* oklch */ color: oklch(40.7% 0.134 358.8);
Tailwind
colors: {
  custom: {
    50: '#a8647a',
    500: '#7e1f48',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f48;
$custom-light: #a8647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f48",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 334.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40652,
    "c": 0.1339,
    "h": 358.8
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

primary
#7E1F48
secondary
#48B184
accent
#E49F44
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E1F48

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

Preview Lab → · Contrast checker → · Palette generator →

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