#7F231A#7F231A

#7F231A is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.2% C 0.128 H 29.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#7F231A
RGBrgb(127, 35, 26)
HSLhsl(5, 66%, 30%)
HSVhsv(5, 80%, 50%)
CMYKcmyk(0%, 72.4%, 79.5%, 50.2%)
CIE-LABlab(28.88, 38.94, 28.46)
CIE-LCHlch(28.88, 48.24, 36.17°)
OKLaboklab(40.18% 0.1114 0.0628)
OKLCHoklch(40.18% 0.128 29.4)
XYZxyz(9.5410, 5.7901, 1.5923)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F231A #1A767F
analogous
#7F1A43 #7F231A #7F561A
triadic
#7F231A #1A7F23 #231A7F
tetradic
#7F231A #437F1A #1A767F #561A7F
square
#7F231A #437F1A #1A767F #561A7F
split-complementary
#7F231A #1A7F56 #1A437F
monochromatic
#190705 #4C1510 #7F231A #B23124 #D74A3C

Accessibility & contrast

On white

9.73
#7F231A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7F231A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F231A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F231A#FFFFFF#000000##FFFFFF
##7F231A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3718
Deuteranopia (green-blind)
#554B16
Tritanopia (blue-blind)
#8C0222
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f231a;
/* rgb */ color: rgb(127, 35, 26);
/* oklch */ color: oklch(40.2% 0.128 29.4);
Tailwind
colors: {
  custom: {
    50: '#ac6457',
    500: '#7f231a',
    950: '#000000',
  },
}
SCSS
$custom: #7f231a;
$custom-light: #ac6457;
$custom-dark: #000000;
JSON
{
  "hex": "#7f231a",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 26
  },
  "hsl": {
    "h": 5.347,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.4018,
    "c": 0.12792,
    "h": 29.4
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#7F231A
secondary
#42A9B3
accent
#DAE93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F231A

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

Preview Lab → · Contrast checker → · Palette generator →

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