#7E1838#7E1838

#7E1838 is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.5% C 0.137 H 8.1°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#7E1838
RGBrgb(126, 24, 56)
HSLhsl(341, 68%, 29%)
HSVhsv(341, 81%, 49%)
CMYKcmyk(0%, 81%, 55.6%, 50.6%)
CIE-LABlab(27.78, 44.51, 7.53)
CIE-LCHlch(27.78, 45.15, 9.60°)
OKLaboklab(39.51% 0.1356 0.0193)
OKLCHoklch(39.51% 0.137 8.1)
XYZxyz(9.6455, 5.3758, 4.2703)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1838 #187E5E
analogous
#7E186B #7E1838 #7E2B18
triadic
#7E1838 #387E18 #18387E
tetradic
#7E1838 #6B7E18 #187E5E #2B187E
square
#7E1838 #6B7E18 #187E5E #2B187E
split-complementary
#7E1838 #187E2B #186B7E
monochromatic
#1A050B #4B0E21 #7E1838 #B1224F #D9376A

Accessibility & contrast

On white

10.12
#7E1838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7E1838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1838
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1838#FFFFFF#000000##FFFFFF
##7E18381.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333539
Deuteranopia (green-blind)
#4E4935
Tritanopia (blue-blind)
#8A0026
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1838;
/* rgb */ color: rgb(126, 24, 56);
/* oklch */ color: oklch(39.5% 0.137 8.1);
Tailwind
colors: {
  custom: {
    50: '#a9606e',
    500: '#7e1838',
    950: '#000000',
  },
}
SCSS
$custom: #7e1838;
$custom-light: #a9606e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1838",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 341.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39508,
    "c": 0.13691,
    "h": 8.1
  },
  "luminance": 0.05374
}

Semantic roles & 50–950 ramp

primary
#7E1838
secondary
#3FB28E
accent
#EBB43D
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110507
muted
#807A7A

Preview Lab

Preview with #7E1838

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

Preview Lab → · Contrast checker → · Palette generator →

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