#7E2234#7E2234

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

Color values

HEX#7E2234
RGBrgb(126, 34, 52)
HSLhsl(348, 58%, 31%)
HSVhsv(348, 73%, 49%)
CMYKcmyk(0%, 73%, 58.7%, 50.6%)
CIE-LABlab(28.98, 40.57, 11.86)
CIE-LCHlch(28.98, 42.27, 16.30°)
OKLaboklab(40.36% 0.1222 0.0295)
OKLCHoklch(40.36% 0.126 13.6)
XYZxyz(9.7970, 5.8290, 3.8574)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2234 #227E6C
analogous
#7E2262 #7E2234 #7E3E22
triadic
#7E2234 #347E22 #22347E
tetradic
#7E2234 #627E22 #227E6C #3E227E
square
#7E2234 #627E22 #227E6C #3E227E
split-complementary
#7E2234 #227E3E #22627E
monochromatic
#1E080C #4E1520 #7E2234 #AE2F48 #CF4C65

Accessibility & contrast

On white

9.70
#7E2234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7E2234 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2234
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2234#FFFFFF#000000##FFFFFF
##7E22341.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393834
Deuteranopia (green-blind)
#514B32
Tritanopia (blue-blind)
#8A0C29
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2234;
/* rgb */ color: rgb(126, 34, 52);
/* oklch */ color: oklch(40.4% 0.126 13.6);
Tailwind
colors: {
  custom: {
    50: '#a9646b',
    500: '#7e2234',
    950: '#000000',
  },
}
SCSS
$custom: #7e2234;
$custom-light: #a9646b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2234",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 52
  },
  "hsl": {
    "h": 348.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40362,
    "c": 0.12576,
    "h": 13.6
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

primary
#7E2234
secondary
#4BB19D
accent
#E1C347
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E2234

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

Preview Lab → · Contrast checker → · Palette generator →

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