#7E1228#7E1228

#7E1228 is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.7% C 0.140 H 16.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#7E1228
RGBrgb(126, 18, 40)
HSLhsl(348, 75%, 28%)
HSVhsv(348, 86%, 49%)
CMYKcmyk(0%, 85.7%, 68.3%, 50.6%)
CIE-LABlab(26.80, 45.13, 17.01)
CIE-LCHlch(26.80, 48.23, 20.65°)
OKLaboklab(38.67% 0.1345 0.0405)
OKLCHoklch(38.67% 0.14 16.8)
XYZxyz(9.2045, 5.0229, 2.4919)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1228 #127E68
analogous
#7E125E #7E1228 #7E3212
triadic
#7E1228 #287E12 #12287E
tetradic
#7E1228 #5E7E12 #127E68 #32127E
square
#7E1228 #5E7E12 #127E68 #32127E
split-complementary
#7E1228 #127E32 #125E7E
monochromatic
#1B0408 #480A17 #7E1228 #B41A39 #E12A4F

Accessibility & contrast

On white

10.48
#7E1228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#7E1228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1228
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1228#FFFFFF#000000##FFFFFF
##7E12281.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343128
Deuteranopia (green-blind)
#4E4725
Tritanopia (blue-blind)
#8B001C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1228;
/* rgb */ color: rgb(126, 18, 40);
/* oklch */ color: oklch(38.7% 0.140 16.8);
Tailwind
colors: {
  custom: {
    50: '#aa5e61',
    500: '#7e1228',
    950: '#000000',
  },
}
SCSS
$custom: #7e1228;
$custom-light: #aa5e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1228",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 347.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38667,
    "c": 0.14044,
    "h": 16.8
  },
  "luminance": 0.05021
}

Semantic roles & 50–950 ramp

primary
#7E1228
secondary
#38B49B
accent
#F2CB36
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110505
muted
#807979

Preview Lab

Preview with #7E1228

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

Preview Lab → · Contrast checker → · Palette generator →

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