#7E1229#7E1229

#7E1229 is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.7% C 0.140 H 16.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#7E1229
RGBrgb(126, 18, 41)
HSLhsl(347, 75%, 28%)
HSVhsv(347, 86%, 49%)
CMYKcmyk(0%, 85.7%, 67.5%, 50.6%)
CIE-LABlab(26.82, 45.19, 16.36)
CIE-LCHlch(26.82, 48.06, 19.91°)
OKLaboklab(38.69% 0.1349 0.0391)
OKLCHoklch(38.69% 0.14 16.2)
XYZxyz(9.2218, 5.0298, 2.5827)
Luminance0.0503 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1229 #127E67
analogous
#7E125F #7E1229 #7E3112
triadic
#7E1229 #297E12 #12297E
tetradic
#7E1229 #5F7E12 #127E67 #31127E
square
#7E1229 #5F7E12 #127E67 #31127E
split-complementary
#7E1229 #127E31 #125F7E
monochromatic
#1B0409 #480A18 #7E1229 #B41A3A #E12A51

Accessibility & contrast

On white

10.47
#7E1229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#7E1229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1229
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1229#FFFFFF#000000##FFFFFF
##7E12291.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333129
Deuteranopia (green-blind)
#4E4726
Tritanopia (blue-blind)
#8B001C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1229;
/* rgb */ color: rgb(126, 18, 41);
/* oklch */ color: oklch(38.7% 0.140 16.2);
Tailwind
colors: {
  custom: {
    50: '#aa5e62',
    500: '#7e1229',
    950: '#000000',
  },
}
SCSS
$custom: #7e1229;
$custom-light: #aa5e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1229",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 41
  },
  "hsl": {
    "h": 347.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38688,
    "c": 0.14046,
    "h": 16.2
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#7E1229
secondary
#38B499
accent
#F2CA36
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7E1229

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

Preview Lab → · Contrast checker → · Palette generator →

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