#7E1E42#7E1E42

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

Color values

HEX#7E1E42
RGBrgb(126, 30, 66)
HSLhsl(338, 62%, 31%)
HSVhsv(338, 76%, 49%)
CMYKcmyk(0%, 76.2%, 47.6%, 50.6%)
CIE-LABlab(28.80, 43.37, 2.26)
CIE-LCHlch(28.80, 43.43, 2.99°)
OKLaboklab(40.35% 0.1329 0.0063)
OKLCHoklch(40.35% 0.133 2.7)
XYZxyz(10.0526, 5.7588, 5.7354)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E42 #1E7E5A
analogous
#7E1E72 #7E1E42 #7E2A1E
triadic
#7E1E42 #427E1E #1E427E
tetradic
#7E1E42 #727E1E #1E7E5A #2A1E7E
square
#7E1E42 #727E1E #1E7E5A #2A1E7E
split-complementary
#7E1E42 #1E7E2A #1E727E
monochromatic
#1B060E #4D1228 #7E1E42 #AF2A5C #D24479

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1E42#FFFFFF#000000##FFFFFF
##7E1E421.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)
#343843
Deuteranopia (green-blind)
#4E4B40
Tritanopia (blue-blind)
#890C2D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1e42;
/* rgb */ color: rgb(126, 30, 66);
/* oklch */ color: oklch(40.4% 0.133 2.7);
Tailwind
colors: {
  custom: {
    50: '#a86376',
    500: '#7e1e42',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e42;
$custom-light: #a86376;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e42",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 66
  },
  "hsl": {
    "h": 337.5,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40351,
    "c": 0.13302,
    "h": 2.7
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#7E1E42
secondary
#47B189
accent
#E5A843
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E1E42

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

Preview Lab → · Contrast checker → · Palette generator →

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