#7E1538#7E1538

#7E1538 is a dark, vivid pink. Relative luminance 0.053; OKLCH L 39.3% C 0.140 H 7.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#7E1538
RGBrgb(126, 21, 56)
HSLhsl(340, 71%, 29%)
HSVhsv(340, 83%, 49%)
CMYKcmyk(0%, 83.3%, 55.6%, 50.6%)
CIE-LABlab(27.46, 45.42, 7.08)
CIE-LCHlch(27.46, 45.97, 8.86°)
OKLaboklab(39.27% 0.1385 0.0182)
OKLCHoklch(39.27% 0.14 7.5)
XYZxyz(9.5871, 5.2589, 4.2509)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1538 #157E5B
analogous
#7E156D #7E1538 #7E2715
triadic
#7E1538 #387E15 #15387E
tetradic
#7E1538 #6D7E15 #157E5B #27157E
square
#7E1538 #6D7E15 #157E5B #27157E
split-complementary
#7E1538 #157E27 #156D7E
monochromatic
#1A040C #4A0C21 #7E1538 #B21E4F #DD316A

Accessibility & contrast

On white

10.24
#7E1538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7E1538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1538
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1538#FFFFFF#000000##FFFFFF
##7E15381.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323339
Deuteranopia (green-blind)
#4D4835
Tritanopia (blue-blind)
#8A0025
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1538;
/* rgb */ color: rgb(126, 21, 56);
/* oklch */ color: oklch(39.3% 0.140 7.5);
Tailwind
colors: {
  custom: {
    50: '#a95f6e',
    500: '#7e1538',
    950: '#000000',
  },
}
SCSS
$custom: #7e1538;
$custom-light: #a95f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1538",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 340,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39273,
    "c": 0.13966,
    "h": 7.5
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#7E1538
secondary
#3CB38B
accent
#EEB23A
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110507
muted
#80797A

Preview Lab

Preview with #7E1538

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

Preview Lab → · Contrast checker → · Palette generator →

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