#7E1231#7E1231

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

Color values

HEX#7E1231
RGBrgb(126, 18, 49)
HSLhsl(343, 75%, 28%)
HSVhsv(343, 86%, 49%)
CMYKcmyk(0%, 85.7%, 61.1%, 50.6%)
CIE-LABlab(26.99, 45.71, 11.18)
CIE-LCHlch(26.99, 47.06, 13.75°)
OKLaboklab(38.87% 0.1383 0.0278)
OKLCHoklch(38.87% 0.141 11.4)
XYZxyz(9.3758, 5.0914, 3.3942)
Luminance0.0509 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1231 #127E5F
analogous
#7E1267 #7E1231 #7E2912
triadic
#7E1231 #317E12 #12317E
tetradic
#7E1231 #677E12 #127E5F #29127E
square
#7E1231 #677E12 #127E5F #29127E
split-complementary
#7E1231 #127E29 #12677E
monochromatic
#1B040A #480A1C #7E1231 #B41A46 #E12A5E

Accessibility & contrast

On white

10.41
#7E1231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1231
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1231#FFFFFF#000000##FFFFFF
##7E12311.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323231
Deuteranopia (green-blind)
#4D482E
Tritanopia (blue-blind)
#8A0020
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1231;
/* rgb */ color: rgb(126, 18, 49);
/* oklch */ color: oklch(38.9% 0.141 11.4);
Tailwind
colors: {
  custom: {
    50: '#aa5e68',
    500: '#7e1231',
    950: '#000000',
  },
}
SCSS
$custom: #7e1231;
$custom-light: #aa5e68;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1231",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 342.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38872,
    "c": 0.14102,
    "h": 11.4
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#7E1231
secondary
#38B490
accent
#F2BC36
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7E1231

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

Preview Lab → · Contrast checker → · Palette generator →

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