#7F261B#7F261B

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

Color values

HEX#7F261B
RGBrgb(127, 38, 27)
HSLhsl(7, 65%, 30%)
HSVhsv(7, 79%, 50%)
CMYKcmyk(0%, 70.1%, 78.7%, 50.2%)
CIE-LABlab(29.36, 37.70, 28.39)
CIE-LCHlch(29.36, 47.19, 36.98°)
OKLaboklab(40.54% 0.1078 0.063)
OKLCHoklch(40.54% 0.125 30.3)
XYZxyz(9.6444, 5.9788, 1.6829)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F261B #1B747F
analogous
#7F1B42 #7F261B #7F581B
triadic
#7F261B #1B7F26 #261B7F
tetradic
#7F261B #427F1B #1B747F #581B7F
square
#7F261B #427F1B #1B747F #581B7F
split-complementary
#7F261B #1B7F58 #1B427F
monochromatic
#1A0806 #4D1710 #7F261B #B13526 #D64F3E

Accessibility & contrast

On white

9.57
#7F261B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7F261B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F261B
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F261B#FFFFFF#000000##FFFFFF
##7F261B1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3919
Deuteranopia (green-blind)
#564C18
Tritanopia (blue-blind)
#8C0A24
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f261b;
/* rgb */ color: rgb(127, 38, 27);
/* oklch */ color: oklch(40.5% 0.125 30.3);
Tailwind
colors: {
  custom: {
    50: '#ab6658',
    500: '#7f261b',
    950: '#000000',
  },
}
SCSS
$custom: #7f261b;
$custom-light: #ab6658;
$custom-dark: #000000;
JSON
{
  "hex": "#7f261b",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 27
  },
  "hsl": {
    "h": 6.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40545,
    "c": 0.1248,
    "h": 30.3
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#7F261B
secondary
#43A6B3
accent
#D5E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F261B

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

Preview Lab → · Contrast checker → · Palette generator →

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