#7F1827#7F1827

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

Color values

HEX#7F1827
RGBrgb(127, 24, 39)
HSLhsl(351, 68%, 30%)
HSVhsv(351, 81%, 50%)
CMYKcmyk(0%, 81.1%, 69.3%, 50.2%)
CIE-LABlab(27.61, 43.63, 18.75)
CIE-LCHlch(27.61, 47.49, 23.25°)
OKLaboklab(39.3% 0.1293 0.0442)
OKLCHoklch(39.3% 0.137 18.9)
XYZxyz(9.4463, 5.3132, 2.4472)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1827 #187F70
analogous
#7F185B #7F1827 #7F3D18
triadic
#7F1827 #277F18 #18277F
tetradic
#7F1827 #5B7F18 #187F70 #3D187F
square
#7F1827 #5B7F18 #187F70 #3D187F
split-complementary
#7F1827 #187F3D #185B7F
monochromatic
#1A0508 #4C0E17 #7F1827 #B22237 #D93850

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F1827#FFFFFF#000000##FFFFFF
##7F18271.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)
#373327
Deuteranopia (green-blind)
#504924
Tritanopia (blue-blind)
#8C001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1827;
/* rgb */ color: rgb(127, 24, 39);
/* oklch */ color: oklch(39.3% 0.137 18.9);
Tailwind
colors: {
  custom: {
    50: '#ab6060',
    500: '#7f1827',
    950: '#000000',
  },
}
SCSS
$custom: #7f1827;
$custom-light: #ab6060;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1827",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 39
  },
  "hsl": {
    "h": 351.262,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39297,
    "c": 0.13665,
    "h": 18.9
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#7F1827
secondary
#3FB3A2
accent
#EBD23D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110505
muted
#807979

Preview Lab

Preview with #7F1827

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

Preview Lab → · Contrast checker → · Palette generator →

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