#7E2137#7E2137

#7E2137 is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.3% C 0.127 H 11.2°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#7E2137
RGBrgb(126, 33, 55)
HSLhsl(346, 58%, 31%)
HSVhsv(346, 74%, 49%)
CMYKcmyk(0%, 73.8%, 56.3%, 50.6%)
CIE-LABlab(28.90, 41.22, 9.76)
CIE-LCHlch(28.90, 42.36, 13.33°)
OKLaboklab(40.33% 0.1248 0.0246)
OKLCHoklch(40.33% 0.127 11.2)
XYZxyz(9.8385, 5.8005, 4.2152)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2137 #217E68
analogous
#7E2165 #7E2137 #7E3921
triadic
#7E2137 #377E21 #21377E
tetradic
#7E2137 #657E21 #217E68 #39217E
square
#7E2137 #657E21 #217E68 #39217E
split-complementary
#7E2137 #217E39 #21657E
monochromatic
#1D080D #4E1422 #7E2137 #AE2E4C #D04A69

Accessibility & contrast

On white

9.72
#7E2137 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E2137 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2137
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2137#FFFFFF#000000##FFFFFF
##7E21371.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383837
Deuteranopia (green-blind)
#504B35
Tritanopia (blue-blind)
#8A0B2A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2137;
/* rgb */ color: rgb(126, 33, 55);
/* oklch */ color: oklch(40.3% 0.127 11.2);
Tailwind
colors: {
  custom: {
    50: '#a9646d',
    500: '#7e2137',
    950: '#000000',
  },
}
SCSS
$custom: #7e2137;
$custom-light: #a9646d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2137",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 55
  },
  "hsl": {
    "h": 345.806,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40331,
    "c": 0.12719,
    "h": 11.2
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#7E2137
secondary
#4AB198
accent
#E2BD46
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110607
muted
#807A7A

Preview Lab

Preview with #7E2137

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

Preview Lab → · Contrast checker → · Palette generator →

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