#7F251B#7F251B

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

Color values

HEX#7F251B
RGBrgb(127, 37, 27)
HSLhsl(6, 65%, 30%)
HSVhsv(6, 79%, 50%)
CMYKcmyk(0%, 70.9%, 78.7%, 50.2%)
CIE-LABlab(29.20, 38.13, 28.21)
CIE-LCHlch(29.20, 47.44, 36.50°)
OKLaboklab(40.42% 0.1091 0.0626)
OKLCHoklch(40.42% 0.126 29.8)
XYZxyz(9.6129, 5.9157, 1.6724)
Luminance0.0591 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F251B #1B757F
analogous
#7F1B43 #7F251B #7F571B
triadic
#7F251B #1B7F25 #251B7F
tetradic
#7F251B #437F1B #1B757F #571B7F
square
#7F251B #437F1B #1B757F #571B7F
split-complementary
#7F251B #1B7F57 #1B437F
monochromatic
#1A0806 #4D1610 #7F251B #B13426 #D64E3E

Accessibility & contrast

On white

9.62
#7F251B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7F251B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F251B
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F251B#FFFFFF#000000##FFFFFF
##7F251B1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3819
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#8C0723
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f251b;
/* rgb */ color: rgb(127, 37, 27);
/* oklch */ color: oklch(40.4% 0.126 29.8);
Tailwind
colors: {
  custom: {
    50: '#ab6558',
    500: '#7f251b',
    950: '#000000',
  },
}
SCSS
$custom: #7f251b;
$custom-light: #ab6558;
$custom-dark: #000000;
JSON
{
  "hex": "#7f251b",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 27
  },
  "hsl": {
    "h": 6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40425,
    "c": 0.12579,
    "h": 29.8
  },
  "luminance": 0.05914
}

Semantic roles & 50–950 ramp

primary
#7F251B
secondary
#43A8B3
accent
#D7E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F251B

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

Preview Lab → · Contrast checker → · Palette generator →

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