#7E2233#7E2233

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

Color values

HEX#7E2233
RGBrgb(126, 34, 51)
HSLhsl(349, 58%, 31%)
HSVhsv(349, 73%, 49%)
CMYKcmyk(0%, 73%, 59.5%, 50.6%)
CIE-LABlab(28.95, 40.49, 12.49)
CIE-LCHlch(28.95, 42.37, 17.15°)
OKLaboklab(40.34% 0.1218 0.031)
OKLCHoklch(40.34% 0.126 14.3)
XYZxyz(9.7747, 5.8201, 3.7400)
Luminance0.0582 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2233 #227E6D
analogous
#7E2261 #7E2233 #7E3F22
triadic
#7E2233 #337E22 #22337E
tetradic
#7E2233 #617E22 #227E6D #3F227E
square
#7E2233 #617E22 #227E6D #3F227E
split-complementary
#7E2233 #227E3F #22617E
monochromatic
#1E080C #4E151F #7E2233 #AE2F47 #CF4C64

Accessibility & contrast

On white

9.71
#7E2233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2233
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2233#FFFFFF#000000##FFFFFF
##7E22331.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3833
Deuteranopia (green-blind)
#514B31
Tritanopia (blue-blind)
#8A0B29
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2233;
/* rgb */ color: rgb(126, 34, 51);
/* oklch */ color: oklch(40.3% 0.126 14.3);
Tailwind
colors: {
  custom: {
    50: '#a9646a',
    500: '#7e2233',
    950: '#000000',
  },
}
SCSS
$custom: #7e2233;
$custom-light: #a9646a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2233",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 51
  },
  "hsl": {
    "h": 348.913,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40338,
    "c": 0.12569,
    "h": 14.3
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#7E2233
secondary
#4BB19E
accent
#E1C447
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E2233

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

Preview Lab → · Contrast checker → · Palette generator →

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