#7F231B#7F231B

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

Color values

HEX#7F231B
RGBrgb(127, 35, 27)
HSLhsl(5, 65%, 30%)
HSVhsv(5, 79%, 50%)
CMYKcmyk(0%, 72.4%, 78.7%, 50.2%)
CIE-LABlab(28.89, 38.98, 27.88)
CIE-LCHlch(28.89, 47.93, 35.57°)
OKLaboklab(40.19% 0.1118 0.0619)
OKLCHoklch(40.19% 0.128 29)
XYZxyz(9.5523, 5.7947, 1.6522)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F231B #1B777F
analogous
#7F1B45 #7F231B #7F551B
triadic
#7F231B #1B7F23 #231B7F
tetradic
#7F231B #457F1B #1B777F #551B7F
square
#7F231B #457F1B #1B777F #551B7F
split-complementary
#7F231B #1B7F55 #1B457F
monochromatic
#1A0706 #4D1510 #7F231B #B13126 #D64A3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F231B#FFFFFF#000000##FFFFFF
##7F231B1.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)
#3E3719
Deuteranopia (green-blind)
#554B17
Tritanopia (blue-blind)
#8C0222
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f231b;
/* rgb */ color: rgb(127, 35, 27);
/* oklch */ color: oklch(40.2% 0.128 29.0);
Tailwind
colors: {
  custom: {
    50: '#ac6458',
    500: '#7f231b',
    950: '#000000',
  },
}
SCSS
$custom: #7f231b;
$custom-light: #ac6458;
$custom-dark: #000000;
JSON
{
  "hex": "#7f231b",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 27
  },
  "hsl": {
    "h": 4.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40192,
    "c": 0.12775,
    "h": 29
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#7F231B
secondary
#43AAB3
accent
#DAE840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F231B

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

Preview Lab → · Contrast checker → · Palette generator →

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