#A7251B#A7251B

#A7251B is a mid, vivid red. Relative luminance 0.096; OKLCH L 47.8% C 0.168 H 29.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#A7251B
RGBrgb(167, 37, 27)
HSLhsl(4, 72%, 38%)
HSVhsv(4, 84%, 65%)
CMYKcmyk(0%, 77.8%, 83.8%, 34.5%)
CIE-LABlab(37.15, 51.49, 38.79)
CIE-LCHlch(37.15, 64.46, 37.00°)
OKLaboklab(47.8% 0.1463 0.0821)
OKLCHoklch(47.8% 0.168 29.3)
XYZxyz(16.7978, 9.6205, 2.0092)
Luminance0.0962 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7251B #1B9DA7
analogous
#A71B57 #A7251B #A76B1B
triadic
#A7251B #1BA725 #251BA7
tetradic
#A7251B #57A71B #1B9DA7 #6B1BA7
square
#A7251B #57A71B #1B9DA7 #6B1BA7
split-complementary
#A7251B #1BA76B #1B57A7
monochromatic
#3E0E0A #721912 #A7251B #DC3124 #E46258

Accessibility & contrast

On white

7.18
#A7251B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#A7251B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A7251B
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7251B#FFFFFF#000000##FFFFFF
##A7251B1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4518
Deuteranopia (green-blind)
#6E6214
Tritanopia (blue-blind)
#B80024
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #a7251b;
/* rgb */ color: rgb(167, 37, 27);
/* oklch */ color: oklch(47.8% 0.168 29.3);
Tailwind
colors: {
  custom: {
    50: '#cb6b59',
    500: '#a7251b',
    950: '#000000',
  },
}
SCSS
$custom: #a7251b;
$custom-light: #cb6b59;
$custom-dark: #000000;
JSON
{
  "hex": "#a7251b",
  "rgb": {
    "r": 167,
    "g": 37,
    "b": 27
  },
  "hsl": {
    "h": 4.286,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47802,
    "c": 0.16776,
    "h": 29.3
  },
  "luminance": 0.09618
}

Semantic roles & 50–950 ramp

primary
#A7251B
secondary
#56BFC8
accent
#E2EF39
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150703
muted
#837A78

Preview Lab

Preview with #A7251B

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

Preview Lab → · Contrast checker → · Palette generator →

#A7251B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva