#A7251C#A7251C

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

Color values

HEX#A7251C
RGBrgb(167, 37, 28)
HSLhsl(4, 71%, 38%)
HSVhsv(4, 83%, 65%)
CMYKcmyk(0%, 77.8%, 83.2%, 34.5%)
CIE-LABlab(37.16, 51.51, 38.27)
CIE-LCHlch(37.16, 64.17, 36.61°)
OKLaboklab(47.81% 0.1466 0.0813)
OKLCHoklch(47.81% 0.168 29)
XYZxyz(16.8096, 9.6252, 2.0711)
Luminance0.0962 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7251C #1C9EA7
analogous
#A71C58 #A7251C #A76A1C
triadic
#A7251C #1CA725 #251CA7
tetradic
#A7251C #58A71C #1C9EA7 #6A1CA7
square
#A7251C #58A71C #1C9EA7 #6A1CA7
split-complementary
#A7251C #1CA76A #1C58A7
monochromatic
#3E0E0A #731913 #A7251C #DB3126 #E3635A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7251C#FFFFFF#000000##FFFFFF
##A7251C1.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)
#4E4519
Deuteranopia (green-blind)
#6E6215
Tritanopia (blue-blind)
#B80025
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #a7251c;
/* rgb */ color: rgb(167, 37, 28);
/* oklch */ color: oklch(47.8% 0.168 29.0);
Tailwind
colors: {
  custom: {
    50: '#cb6b5a',
    500: '#a7251c',
    950: '#000000',
  },
}
SCSS
$custom: #a7251c;
$custom-light: #cb6b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7251c",
  "rgb": {
    "r": 167,
    "g": 37,
    "b": 28
  },
  "hsl": {
    "h": 3.885,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47812,
    "c": 0.16763,
    "h": 29
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

primary
#A7251C
secondary
#58C0C7
accent
#E2EE3A
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150704
muted
#837A79

Preview Lab

Preview with #A7251C

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

Preview Lab → · Contrast checker → · Palette generator →

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