#7E1F3F#7E1F3F

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

Color values

HEX#7E1F3F
RGBrgb(126, 31, 63)
HSLhsl(340, 61%, 31%)
HSVhsv(340, 75%, 49%)
CMYKcmyk(0%, 75.4%, 50%, 50.6%)
CIE-LABlab(28.84, 42.71, 4.33)
CIE-LCHlch(28.84, 42.93, 5.79°)
OKLaboklab(40.35% 0.1305 0.0115)
OKLCHoklch(40.35% 0.131 5)
XYZxyz(9.9922, 5.7758, 5.2903)
Luminance0.0577 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F3F #1F7E5E
analogous
#7E1F6E #7E1F3F #7E2E1F
triadic
#7E1F3F #3F7E1F #1F3F7E
tetradic
#7E1F3F #6E7E1F #1F7E5E #2E1F7E
square
#7E1F3F #6E7E1F #1F7E5E #2E1F7E
split-complementary
#7E1F3F #1F7E2E #1F6E7E
monochromatic
#1C070E #4D1326 #7E1F3F #AF2B58 #D14675

Accessibility & contrast

On white

9.75
#7E1F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F3F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F3F#FFFFFF#000000##FFFFFF
##7E1F3F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353840
Deuteranopia (green-blind)
#4E4B3D
Tritanopia (blue-blind)
#890C2C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1f3f;
/* rgb */ color: rgb(126, 31, 63);
/* oklch */ color: oklch(40.4% 0.131 5.0);
Tailwind
colors: {
  custom: {
    50: '#a86373',
    500: '#7e1f3f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f3f;
$custom-light: #a86373;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f3f",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 63
  },
  "hsl": {
    "h": 339.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40354,
    "c": 0.13102,
    "h": 5
  },
  "luminance": 0.05774
}

Semantic roles & 50–950 ramp

primary
#7E1F3F
secondary
#48B18E
accent
#E4AE44
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E1F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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