#7E1232#7E1232

#7E1232 is a dark, vivid pink. Relative luminance 0.051; OKLCH L 38.9% C 0.141 H 10.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#7E1232
RGBrgb(126, 18, 50)
HSLhsl(342, 75%, 28%)
HSVhsv(342, 86%, 49%)
CMYKcmyk(0%, 85.7%, 60.3%, 50.6%)
CIE-LABlab(27.02, 45.78, 10.54)
CIE-LCHlch(27.02, 46.98, 12.96°)
OKLaboklab(38.9% 0.1387 0.0263)
OKLCHoklch(38.9% 0.141 10.7)
XYZxyz(9.3972, 5.0999, 3.5066)
Luminance0.0510 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1232 #127E5E
analogous
#7E1268 #7E1232 #7E2812
triadic
#7E1232 #327E12 #12327E
tetradic
#7E1232 #687E12 #127E5E #28127E
square
#7E1232 #687E12 #127E5E #28127E
split-complementary
#7E1232 #127E28 #12687E
monochromatic
#1B040B #480A1D #7E1232 #B41A47 #E12A60

Accessibility & contrast

On white

10.40
#7E1232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7E1232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1232
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1232#FFFFFF#000000##FFFFFF
##7E12321.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323232
Deuteranopia (green-blind)
#4D482F
Tritanopia (blue-blind)
#8A0021
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1232;
/* rgb */ color: rgb(126, 18, 50);
/* oklch */ color: oklch(38.9% 0.141 10.7);
Tailwind
colors: {
  custom: {
    50: '#aa5e69',
    500: '#7e1232',
    950: '#000000',
  },
}
SCSS
$custom: #7e1232;
$custom-light: #aa5e69;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1232",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 342.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38898,
    "c": 0.14114,
    "h": 10.7
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#7E1232
secondary
#38B48F
accent
#F2BA36
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7E1232

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

Preview Lab → · Contrast checker → · Palette generator →

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