#7F251F#7F251F

#7F251F is a dark, vivid red. Relative luminance 0.059; OKLCH L 40.5% C 0.125 H 27.9°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#7F251F
RGBrgb(127, 37, 31)
HSLhsl(4, 61%, 31%)
HSVhsv(4, 76%, 50%)
CMYKcmyk(0%, 70.9%, 75.6%, 50.2%)
CIE-LABlab(29.25, 38.32, 25.84)
CIE-LCHlch(29.25, 46.22, 34.00°)
OKLaboklab(40.48% 0.1106 0.0585)
OKLCHoklch(40.48% 0.125 27.9)
XYZxyz(9.6624, 5.9355, 1.9329)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F251F #1F797F
analogous
#7F1F49 #7F251F #7F551F
triadic
#7F251F #1F7F25 #251F7F
tetradic
#7F251F #497F1F #1F797F #551F7F
square
#7F251F #497F1F #1F797F #551F7F
split-complementary
#7F251F #1F7F55 #1F497F
monochromatic
#1D0807 #4E1713 #7F251F #B0332B #D24F46

Accessibility & contrast

On white

9.60
#7F251F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7F251F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F251F
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F251F#FFFFFF#000000##FFFFFF
##7F251F1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F381E
Deuteranopia (green-blind)
#554C1C
Tritanopia (blue-blind)
#8C0924
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f251f;
/* rgb */ color: rgb(127, 37, 31);
/* oklch */ color: oklch(40.5% 0.125 27.9);
Tailwind
colors: {
  custom: {
    50: '#ab655b',
    500: '#7f251f',
    950: '#000000',
  },
}
SCSS
$custom: #7f251f;
$custom-light: #ab655b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f251f",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 31
  },
  "hsl": {
    "h": 3.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.12507,
    "h": 27.9
  },
  "luminance": 0.05934
}

Semantic roles & 50–950 ramp

primary
#7F251F
secondary
#48ABB2
accent
#DAE444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F251F

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

Preview Lab → · Contrast checker → · Palette generator →

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