#7E1F47#7E1F47

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

Color values

HEX#7E1F47
RGBrgb(126, 31, 71)
HSLhsl(335, 61%, 31%)
HSVhsv(335, 75%, 49%)
CMYKcmyk(0%, 75.4%, 43.7%, 50.6%)
CIE-LABlab(29.09, 43.52, -0.65)
CIE-LCHlch(29.09, 43.52, 359.15°)
OKLaboklab(40.62% 0.1335 -0.0012)
OKLCHoklch(40.62% 0.134 359.5)
XYZxyz(10.2323, 5.8718, 6.5546)
Luminance0.0587 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F47 #1F7E56
analogous
#7E1F76 #7E1F47 #7E261F
triadic
#7E1F47 #477E1F #1F477E
tetradic
#7E1F47 #767E1F #1F7E56 #261F7E
square
#7E1F47 #767E1F #1F7E56 #261F7E
split-complementary
#7E1F47 #1F7E26 #1F767E
monochromatic
#1C0710 #4D132B #7E1F47 #AF2B63 #D14681

Accessibility & contrast

On white

9.66
#7E1F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7E1F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F47
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F47#FFFFFF#000000##FFFFFF
##7E1F471.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333948
Deuteranopia (green-blind)
#4D4B45
Tritanopia (blue-blind)
#891130
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1f47;
/* rgb */ color: rgb(126, 31, 71);
/* oklch */ color: oklch(40.6% 0.134 359.5);
Tailwind
colors: {
  custom: {
    50: '#a8647a',
    500: '#7e1f47',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f47;
$custom-light: #a8647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f47",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 71
  },
  "hsl": {
    "h": 334.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40617,
    "c": 0.13352,
    "h": 359.5
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

primary
#7E1F47
secondary
#48B185
accent
#E4A044
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E1F47

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

Preview Lab → · Contrast checker → · Palette generator →

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