#7E2236#7E2236

#7E2236 is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.4% C 0.126 H 12.2°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#7E2236
RGBrgb(126, 34, 54)
HSLhsl(347, 58%, 31%)
HSVhsv(347, 73%, 49%)
CMYKcmyk(0%, 73%, 57.1%, 50.6%)
CIE-LABlab(29.02, 40.73, 10.59)
CIE-LCHlch(29.02, 42.09, 14.58°)
OKLaboklab(40.41% 0.1231 0.0266)
OKLCHoklch(40.41% 0.126 12.2)
XYZxyz(9.8430, 5.8474, 4.0997)
Luminance0.0585 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2236 #227E6A
analogous
#7E2264 #7E2236 #7E3C22
triadic
#7E2236 #367E22 #22367E
tetradic
#7E2236 #647E22 #227E6A #3C227E
square
#7E2236 #647E22 #227E6A #3C227E
split-complementary
#7E2236 #227E3C #22647E
monochromatic
#1E080D #4E1521 #7E2236 #AE2F4B #CF4C68

Accessibility & contrast

On white

9.68
#7E2236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7E2236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2236
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2236#FFFFFF#000000##FFFFFF
##7E22361.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393836
Deuteranopia (green-blind)
#514B34
Tritanopia (blue-blind)
#8A0D2A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2236;
/* rgb */ color: rgb(126, 34, 54);
/* oklch */ color: oklch(40.4% 0.126 12.2);
Tailwind
colors: {
  custom: {
    50: '#a9646c',
    500: '#7e2236',
    950: '#000000',
  },
}
SCSS
$custom: #7e2236;
$custom-light: #a9646c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2236",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 54
  },
  "hsl": {
    "h": 346.957,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.12592,
    "h": 12.2
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#7E2236
secondary
#4BB19B
accent
#E1BF47
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110607
muted
#807A7A

Preview Lab

Preview with #7E2236

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

Preview Lab → · Contrast checker → · Palette generator →

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