#7E1227#7E1227

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

Color values

HEX#7E1227
RGBrgb(126, 18, 39)
HSLhsl(348, 75%, 28%)
HSVhsv(348, 86%, 49%)
CMYKcmyk(0%, 85.7%, 69%, 50.6%)
CIE-LABlab(26.78, 45.07, 17.66)
CIE-LCHlch(26.78, 48.40, 21.39°)
OKLaboklab(38.65% 0.1341 0.0418)
OKLCHoklch(38.65% 0.14 17.3)
XYZxyz(9.1877, 5.0162, 2.4035)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1227 #127E69
analogous
#7E125D #7E1227 #7E3312
triadic
#7E1227 #277E12 #12277E
tetradic
#7E1227 #5D7E12 #127E69 #33127E
square
#7E1227 #5D7E12 #127E69 #33127E
split-complementary
#7E1227 #127E33 #125D7E
monochromatic
#1B0408 #480A16 #7E1227 #B41A38 #E12A4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1227#FFFFFF#000000##FFFFFF
##7E12271.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)
#343127
Deuteranopia (green-blind)
#4F4724
Tritanopia (blue-blind)
#8B001C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1227;
/* rgb */ color: rgb(126, 18, 39);
/* oklch */ color: oklch(38.6% 0.140 17.3);
Tailwind
colors: {
  custom: {
    50: '#ab5e60',
    500: '#7e1227',
    950: '#000000',
  },
}
SCSS
$custom: #7e1227;
$custom-light: #ab5e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1227",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 39
  },
  "hsl": {
    "h": 348.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38647,
    "c": 0.14043,
    "h": 17.3
  },
  "luminance": 0.05015
}

Semantic roles & 50–950 ramp

primary
#7E1227
secondary
#38B49C
accent
#F2CD36
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110505
muted
#807979

Preview Lab

Preview with #7E1227

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

Preview Lab → · Contrast checker → · Palette generator →

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