#7E2838#7E2838

#7E2838 is a dark, moderate red. Relative luminance 0.062; OKLCH L 41.2% C 0.119 H 13.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7E2838
RGBrgb(126, 40, 56)
HSLhsl(349, 52%, 33%)
HSVhsv(349, 68%, 49%)
CMYKcmyk(0%, 68.3%, 55.6%, 50.6%)
CIE-LABlab(30.01, 38.33, 10.62)
CIE-LCHlch(30.01, 39.78, 15.49°)
OKLaboklab(41.16% 0.1157 0.0268)
OKLCHoklch(41.16% 0.119 13)
XYZxyz(10.0777, 6.2400, 4.4144)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2838 #287E6E
analogous
#7E2863 #7E2838 #7E4328
triadic
#7E2838 #387E28 #28387E
tetradic
#7E2838 #637E28 #287E6E #43287E
square
#7E2838 #637E28 #287E6E #43287E
split-complementary
#7E2838 #287E43 #28637E
monochromatic
#210B0F #501923 #7E2838 #AC374D #CA576C

Accessibility & contrast

On white

9.34
#7E2838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E2838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2838
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2838#FFFFFF#000000##FFFFFF
##7E28381.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3C38
Deuteranopia (green-blind)
#534D36
Tritanopia (blue-blind)
#8A182E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2838;
/* rgb */ color: rgb(126, 40, 56);
/* oklch */ color: oklch(41.2% 0.119 13.0);
Tailwind
colors: {
  custom: {
    50: '#a8676e',
    500: '#7e2838',
    950: '#000000',
  },
}
SCSS
$custom: #7e2838;
$custom-light: #a8676e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2838",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 348.837,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41162,
    "c": 0.11877,
    "h": 13
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#7E2838
secondary
#53AF9E
accent
#DBC14D
background
#FAF6F6
surface
#F4EBEB
border
#CEC6C6
text
#100607
muted
#7F7A7A

Preview Lab

Preview with #7E2838

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

Preview Lab → · Contrast checker → · Palette generator →

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