#A51F2F#A51F2F

#A51F2F is a mid, vivid red. Relative luminance 0.092; OKLCH L 47.2% C 0.168 H 21.0°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#A51F2F
RGBrgb(165, 31, 47)
HSLhsl(353, 68%, 38%)
HSVhsv(353, 81%, 65%)
CMYKcmyk(0%, 81.2%, 71.5%, 35.3%)
CIE-LABlab(36.34, 53.44, 26.10)
CIE-LCHlch(36.34, 59.47, 26.03°)
OKLaboklab(47.2% 0.1571 0.0602)
OKLCHoklch(47.2% 0.168 21)
XYZxyz(16.5220, 9.1871, 3.5921)
Luminance0.0919 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F2F #1FA595
analogous
#A51F72 #A51F2F #A5521F
triadic
#A51F2F #2FA51F #1F2FA5
tetradic
#A51F2F #72A51F #1FA595 #521FA5
square
#A51F2F #72A51F #1FA595 #521FA5
split-complementary
#A51F2F #1FA552 #1F72A5
monochromatic
#3E0C12 #711520 #A51F2F #D72A3F #E15E6D

Accessibility & contrast

On white

7.40
#A51F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#A51F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A51F2F
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F2F#FFFFFF#000000##FFFFFF
##A51F2F1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49432E
Deuteranopia (green-blind)
#6A602B
Tritanopia (blue-blind)
#B60027
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #a51f2f;
/* rgb */ color: rgb(165, 31, 47);
/* oklch */ color: oklch(47.2% 0.168 21.0);
Tailwind
colors: {
  custom: {
    50: '#c86967',
    500: '#a51f2f',
    950: '#000000',
  },
}
SCSS
$custom: #a51f2f;
$custom-light: #c86967;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f2f",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 352.836,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47204,
    "c": 0.1682,
    "h": 21
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#A51F2F
secondary
#5BC5B8
accent
#EBD63D
background
#FDF6F6
surface
#FAECEB
border
#D3C7C6
text
#150706
muted
#837A7A

Preview Lab

Preview with #A51F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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