#7F251A#7F251A

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

Color values

HEX#7F251A
RGBrgb(127, 37, 26)
HSLhsl(7, 66%, 30%)
HSVhsv(7, 80%, 50%)
CMYKcmyk(0%, 70.9%, 79.5%, 50.2%)
CIE-LABlab(29.19, 38.09, 28.79)
CIE-LCHlch(29.19, 47.75, 37.09°)
OKLaboklab(40.41% 0.1088 0.0636)
OKLCHoklch(40.41% 0.126 30.3)
XYZxyz(9.6015, 5.9112, 1.6125)
Luminance0.0591 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F251A #1A747F
analogous
#7F1A41 #7F251A #7F581A
triadic
#7F251A #1A7F25 #251A7F
tetradic
#7F251A #417F1A #1A747F #581A7F
square
#7F251A #417F1A #1A747F #581A7F
split-complementary
#7F251A #1A7F58 #1A417F
monochromatic
#190705 #4C1610 #7F251A #B23424 #D74D3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F251A#FFFFFF#000000##FFFFFF
##7F251A1.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)
#3F3818
Deuteranopia (green-blind)
#554C17
Tritanopia (blue-blind)
#8C0723
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f251a;
/* rgb */ color: rgb(127, 37, 26);
/* oklch */ color: oklch(40.4% 0.126 30.3);
Tailwind
colors: {
  custom: {
    50: '#ab6557',
    500: '#7f251a',
    950: '#000000',
  },
}
SCSS
$custom: #7f251a;
$custom-light: #ab6557;
$custom-dark: #000000;
JSON
{
  "hex": "#7f251a",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 26
  },
  "hsl": {
    "h": 6.535,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.40412,
    "c": 0.12598,
    "h": 30.3
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#7F251A
secondary
#42A7B3
accent
#D6E93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F251A

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

Preview Lab → · Contrast checker → · Palette generator →

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