#7E1236#7E1236

#7E1236 is a dark, vivid pink. Relative luminance 0.051; OKLCH L 39.0% C 0.142 H 8.2°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#7E1236
RGBrgb(126, 18, 54)
HSLhsl(340, 75%, 28%)
HSVhsv(340, 86%, 49%)
CMYKcmyk(0%, 85.7%, 57.1%, 50.6%)
CIE-LABlab(27.12, 46.08, 7.96)
CIE-LCHlch(27.12, 46.76, 9.80°)
OKLaboklab(39.01% 0.1403 0.0203)
OKLCHoklch(39.01% 0.142 8.2)
XYZxyz(9.4873, 5.1360, 3.9811)
Luminance0.0513 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1236 #127E5A
analogous
#7E126C #7E1236 #7E2412
triadic
#7E1236 #367E12 #12367E
tetradic
#7E1236 #6C7E12 #127E5A #24127E
square
#7E1236 #6C7E12 #127E5A #24127E
split-complementary
#7E1236 #127E24 #126C7E
monochromatic
#1B040B #480A1F #7E1236 #B41A4D #E12A67

Accessibility & contrast

On white

10.36
#7E1236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7E1236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1236
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1236#FFFFFF#000000##FFFFFF
##7E12361.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313237
Deuteranopia (green-blind)
#4D4833
Tritanopia (blue-blind)
#8A0022
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1236;
/* rgb */ color: rgb(126, 18, 54);
/* oklch */ color: oklch(39.0% 0.142 8.2);
Tailwind
colors: {
  custom: {
    50: '#a95e6c',
    500: '#7e1236',
    950: '#000000',
  },
}
SCSS
$custom: #7e1236;
$custom-light: #a95e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1236",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 340,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39005,
    "c": 0.14178,
    "h": 8.2
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#7E1236
secondary
#38B48B
accent
#F2B336
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110507
muted
#80797A

Preview Lab

Preview with #7E1236

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

Preview Lab → · Contrast checker → · Palette generator →

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