#7F1828#7F1828

#7F1828 is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.3% C 0.137 H 18.3°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#7F1828
RGBrgb(127, 24, 40)
HSLhsl(351, 68%, 30%)
HSVhsv(351, 81%, 50%)
CMYKcmyk(0%, 81.1%, 68.5%, 50.2%)
CIE-LABlab(27.63, 43.69, 18.11)
CIE-LCHlch(27.63, 47.29, 22.51°)
OKLaboklab(39.32% 0.1297 0.0429)
OKLCHoklch(39.32% 0.137 18.3)
XYZxyz(9.4631, 5.3199, 2.5356)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1828 #187F6F
analogous
#7F185B #7F1828 #7F3C18
triadic
#7F1828 #287F18 #18287F
tetradic
#7F1828 #5B7F18 #187F6F #3C187F
square
#7F1828 #5B7F18 #187F6F #3C187F
split-complementary
#7F1828 #187F3C #185B7F
monochromatic
#1A0508 #4C0E18 #7F1828 #B22238 #D93851

Accessibility & contrast

On white

10.18
#7F1828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#7F1828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1828
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1828#FFFFFF#000000##FFFFFF
##7F18281.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373328
Deuteranopia (green-blind)
#504925
Tritanopia (blue-blind)
#8C001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1828;
/* rgb */ color: rgb(127, 24, 40);
/* oklch */ color: oklch(39.3% 0.137 18.3);
Tailwind
colors: {
  custom: {
    50: '#ab6061',
    500: '#7f1828',
    950: '#000000',
  },
}
SCSS
$custom: #7f1828;
$custom-light: #ab6061;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1828",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 350.68,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39317,
    "c": 0.13662,
    "h": 18.3
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#7F1828
secondary
#3FB3A1
accent
#EBD03D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110505
muted
#807979

Preview Lab

Preview with #7F1828

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

Preview Lab → · Contrast checker → · Palette generator →

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