#7D271C#7D271C

#7D271C is a dark, vivid red. Relative luminance 0.059; OKLCH L 40.3% C 0.121 H 30.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#7D271C
RGBrgb(125, 39, 28)
HSLhsl(7, 63%, 30%)
HSVhsv(7, 78%, 49%)
CMYKcmyk(0%, 68.8%, 77.6%, 51%)
CIE-LABlab(29.15, 36.56, 27.45)
CIE-LCHlch(29.15, 45.72, 36.90°)
OKLaboklab(40.32% 0.1047 0.0613)
OKLCHoklch(40.32% 0.121 30.4)
XYZxyz(9.3936, 5.8962, 1.7418)
Luminance0.0590 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D271C #1C727D
analogous
#7D1C42 #7D271C #7D571C
triadic
#7D271C #1C7D27 #271C7D
tetradic
#7D271C #427D1C #1C727D #571C7D
square
#7D271C #427D1C #1C727D #571C7D
split-complementary
#7D271C #1C7D57 #1C427D
monochromatic
#190806 #4B1711 #7D271C #AF3727 #D4503F

Accessibility & contrast

On white

9.64
#7D271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D271C
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D271C#FFFFFF#000000##FFFFFF
##7D271C1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F391A
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#8A0E25
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d271c;
/* rgb */ color: rgb(125, 39, 28);
/* oklch */ color: oklch(40.3% 0.121 30.4);
Tailwind
colors: {
  custom: {
    50: '#aa6659',
    500: '#7d271c',
    950: '#000000',
  },
}
SCSS
$custom: #7d271c;
$custom-light: #aa6659;
$custom-dark: #000000;
JSON
{
  "hex": "#7d271c",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 6.804,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.40319,
    "c": 0.12131,
    "h": 30.4
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#7D271C
secondary
#44A4B1
accent
#D4E641
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7D271C

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

Preview Lab → · Contrast checker → · Palette generator →

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