#7E2217#7E2217

#7E2217 is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.8% C 0.128 H 30.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#7E2217
RGBrgb(126, 34, 23)
HSLhsl(6, 69%, 29%)
HSVhsv(6, 82%, 49%)
CMYKcmyk(0%, 73%, 81.7%, 50.6%)
CIE-LABlab(28.49, 38.88, 29.77)
CIE-LCHlch(28.49, 48.97, 37.43°)
OKLaboklab(39.85% 0.1107 0.0648)
OKLCHoklch(39.85% 0.128 30.3)
XYZxyz(9.3320, 5.6430, 1.4083)
Luminance0.0564 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2217 #17737E
analogous
#7E1740 #7E2217 #7E5617
triadic
#7E2217 #177E22 #22177E
tetradic
#7E2217 #407E17 #17737E #56177E
square
#7E2217 #407E17 #17737E #56177E
split-complementary
#7E2217 #177E56 #17407E
monochromatic
#1A0705 #4A140E #7E2217 #B23020 #DA4735

Accessibility & contrast

On white

9.87
#7E2217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7E2217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2217
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2217#FFFFFF#000000##FFFFFF
##7E22171.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3615
Deuteranopia (green-blind)
#544B13
Tritanopia (blue-blind)
#8B0020
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e2217;
/* rgb */ color: rgb(126, 34, 23);
/* oklch */ color: oklch(39.8% 0.128 30.3);
Tailwind
colors: {
  custom: {
    50: '#ab6455',
    500: '#7e2217',
    950: '#000000',
  },
}
SCSS
$custom: #7e2217;
$custom-light: #ab6455;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2217",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 23
  },
  "hsl": {
    "h": 6.408,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39846,
    "c": 0.1283,
    "h": 30.3
  },
  "luminance": 0.05642
}

Semantic roles & 50–950 ramp

primary
#7E2217
secondary
#3EA6B3
accent
#D9EC3C
background
#FBF6F4
surface
#F6EBE8
border
#D0C6C4
text
#110603
muted
#807A78

Preview Lab

Preview with #7E2217

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

Preview Lab → · Contrast checker → · Palette generator →

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