#7E2231#7E2231

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

Color values

HEX#7E2231
RGBrgb(126, 34, 49)
HSLhsl(350, 58%, 31%)
HSVhsv(350, 73%, 49%)
CMYKcmyk(0%, 73%, 61.1%, 50.6%)
CIE-LABlab(28.91, 40.34, 13.76)
CIE-LCHlch(28.91, 42.62, 18.84°)
OKLaboklab(40.29% 0.121 0.0338)
OKLCHoklch(40.29% 0.126 15.6)
XYZxyz(9.7315, 5.8028, 3.5128)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2231 #227E6F
analogous
#7E225F #7E2231 #7E4122
triadic
#7E2231 #317E22 #22317E
tetradic
#7E2231 #5F7E22 #227E6F #41227E
square
#7E2231 #5F7E22 #227E6F #41227E
split-complementary
#7E2231 #227E41 #225F7E
monochromatic
#1E080C #4E151E #7E2231 #AE2F44 #CF4C61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2231#FFFFFF#000000##FFFFFF
##7E22311.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)
#3A3831
Deuteranopia (green-blind)
#524B2F
Tritanopia (blue-blind)
#8A0A28
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2231;
/* rgb */ color: rgb(126, 34, 49);
/* oklch */ color: oklch(40.3% 0.126 15.6);
Tailwind
colors: {
  custom: {
    50: '#a96468',
    500: '#7e2231',
    950: '#000000',
  },
}
SCSS
$custom: #7e2231;
$custom-light: #a96468;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2231",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 49
  },
  "hsl": {
    "h": 350.217,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4029,
    "c": 0.1256,
    "h": 15.6
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#7E2231
secondary
#4BB1A0
accent
#E1C847
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E2231

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

Preview Lab → · Contrast checker → · Palette generator →

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