#7E1F3E#7E1F3E

#7E1F3E is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.3% C 0.131 H 5.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#7E1F3E
RGBrgb(126, 31, 62)
HSLhsl(340, 61%, 31%)
HSVhsv(340, 75%, 49%)
CMYKcmyk(0%, 75.4%, 50.8%, 50.6%)
CIE-LABlab(28.81, 42.61, 4.96)
CIE-LCHlch(28.81, 42.90, 6.64°)
OKLaboklab(40.32% 0.1301 0.013)
OKLCHoklch(40.32% 0.131 5.7)
XYZxyz(9.9645, 5.7647, 5.1445)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F3E #1F7E5F
analogous
#7E1F6D #7E1F3E #7E2F1F
triadic
#7E1F3E #3E7E1F #1F3E7E
tetradic
#7E1F3E #6D7E1F #1F7E5F #2F1F7E
square
#7E1F3E #6D7E1F #1F7E5F #2F1F7E
split-complementary
#7E1F3E #1F7E2F #1F6D7E
monochromatic
#1C070E #4D1326 #7E1F3E #AF2B56 #D14673

Accessibility & contrast

On white

9.76
#7E1F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E1F3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F3E
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F3E#FFFFFF#000000##FFFFFF
##7E1F3E1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36383F
Deuteranopia (green-blind)
#4F4B3C
Tritanopia (blue-blind)
#8A0B2C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1f3e;
/* rgb */ color: rgb(126, 31, 62);
/* oklch */ color: oklch(40.3% 0.131 5.7);
Tailwind
colors: {
  custom: {
    50: '#a86373',
    500: '#7e1f3e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f3e;
$custom-light: #a86373;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f3e",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 62
  },
  "hsl": {
    "h": 340.421,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40323,
    "c": 0.13077,
    "h": 5.7
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#7E1F3E
secondary
#48B18F
accent
#E4B044
background
#FAF6F6
surface
#F4EBEC
border
#CEC6C7
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E1F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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