#7E2817#7E2817

#7E2817 is a dark, vivid red. Relative luminance 0.060; OKLCH L 40.6% C 0.122 H 33.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#7E2817
RGBrgb(126, 40, 23)
HSLhsl(10, 69%, 29%)
HSVhsv(10, 82%, 49%)
CMYKcmyk(0%, 68.3%, 81.7%, 50.6%)
CIE-LABlab(29.45, 36.27, 30.74)
CIE-LCHlch(29.45, 47.55, 40.28°)
OKLaboklab(40.57% 0.1026 0.0669)
OKLCHoklch(40.57% 0.123 33.1)
XYZxyz(9.5187, 6.0165, 1.4705)
Luminance0.0602 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2817 #176D7E
analogous
#7E173A #7E2817 #7E5C17
triadic
#7E2817 #177E28 #28177E
tetradic
#7E2817 #3A7E17 #176D7E #5C177E
square
#7E2817 #3A7E17 #176D7E #5C177E
split-complementary
#7E2817 #177E5C #173A7E
monochromatic
#1A0805 #4A180E #7E2817 #B23820 #DA5035

Accessibility & contrast

On white

9.53
#7E2817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E2817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2817
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2817#FFFFFF#000000##FFFFFF
##7E28171.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2817;
/* rgb */ color: rgb(126, 40, 23);
/* oklch */ color: oklch(40.6% 0.122 33.1);
Tailwind
colors: {
  custom: {
    50: '#ab6755',
    500: '#7e2817',
    950: '#000000',
  },
}
SCSS
$custom: #7e2817;
$custom-light: #ab6755;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2817",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 23
  },
  "hsl": {
    "h": 9.903,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40566,
    "c": 0.1225,
    "h": 33.1
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#7E2817
secondary
#3E9FB3
accent
#CFEC3C
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E2817

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

Preview Lab → · Contrast checker → · Palette generator →

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