#7E2717#7E2717

#7E2717 is a dark, vivid red. Relative luminance 0.059; OKLCH L 40.4% C 0.123 H 32.6°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#7E2717
RGBrgb(126, 39, 23)
HSLhsl(9, 69%, 29%)
HSVhsv(9, 82%, 49%)
CMYKcmyk(0%, 69%, 81.7%, 50.6%)
CIE-LABlab(29.29, 36.73, 30.57)
CIE-LCHlch(29.29, 47.78, 39.77°)
OKLaboklab(40.44% 0.104 0.0666)
OKLCHoklch(40.44% 0.123 32.6)
XYZxyz(9.4854, 5.9499, 1.4594)
Luminance0.0595 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2717 #176E7E
analogous
#7E173B #7E2717 #7E5B17
triadic
#7E2717 #177E27 #27177E
tetradic
#7E2717 #3B7E17 #176E7E #5B177E
square
#7E2717 #3B7E17 #176E7E #5B177E
split-complementary
#7E2717 #177E5B #173B7E
monochromatic
#1A0805 #4A170E #7E2717 #B23720 #DA4F35

Accessibility & contrast

On white

9.59
#7E2717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E2717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2717
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2717#FFFFFF#000000##FFFFFF
##7E27171.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403914
Deuteranopia (green-blind)
#564C13
Tritanopia (blue-blind)
#8B0C24
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2717;
/* rgb */ color: rgb(126, 39, 23);
/* oklch */ color: oklch(40.4% 0.123 32.6);
Tailwind
colors: {
  custom: {
    50: '#ab6655',
    500: '#7e2717',
    950: '#000000',
  },
}
SCSS
$custom: #7e2717;
$custom-light: #ab6655;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2717",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 23
  },
  "hsl": {
    "h": 9.32,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4044,
    "c": 0.12348,
    "h": 32.6
  },
  "luminance": 0.05949
}

Semantic roles & 50–950 ramp

primary
#7E2717
secondary
#3EA1B3
accent
#D1EC3C
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E2717

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

Preview Lab → · Contrast checker → · Palette generator →

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