#A51F31#A51F31

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

Color values

HEX#A51F31
RGBrgb(165, 31, 49)
HSLhsl(352, 68%, 38%)
HSVhsv(352, 81%, 65%)
CMYKcmyk(0%, 81.2%, 70.3%, 35.3%)
CIE-LABlab(36.37, 53.53, 24.89)
CIE-LCHlch(36.37, 59.03, 24.93°)
OKLaboklab(47.24% 0.1578 0.0578)
OKLCHoklch(47.24% 0.168 20.1)
XYZxyz(16.5633, 9.2037, 3.8095)
Luminance0.0920 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A51F31 #1FA593
analogous
#A51F74 #A51F31 #A5501F
triadic
#A51F31 #31A51F #1F31A5
tetradic
#A51F31 #74A51F #1FA593 #501FA5
square
#A51F31 #74A51F #1FA593 #501FA5
split-complementary
#A51F31 #1FA550 #1F74A5
monochromatic
#3E0C12 #711522 #A51F31 #D72A41 #E15E6F

Accessibility & contrast

On white

7.39
#A51F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #A51F31
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A51F31#FFFFFF#000000##FFFFFF
##A51F311.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484331
Deuteranopia (green-blind)
#6A602D
Tritanopia (blue-blind)
#B60027
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #a51f31;
/* rgb */ color: rgb(165, 31, 49);
/* oklch */ color: oklch(47.2% 0.168 20.1);
Tailwind
colors: {
  custom: {
    50: '#c86969',
    500: '#a51f31',
    950: '#000000',
  },
}
SCSS
$custom: #a51f31;
$custom-light: #c86969;
$custom-dark: #000000;
JSON
{
  "hex": "#a51f31",
  "rgb": {
    "r": 165,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 351.94,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47237,
    "c": 0.16809,
    "h": 20.1
  },
  "luminance": 0.09201
}

Semantic roles & 50–950 ramp

primary
#A51F31
secondary
#5BC5B7
accent
#EBD43D
background
#FDF6F6
surface
#FAECEB
border
#D3C7C6
text
#150706
muted
#837A7A

Preview Lab

Preview with #A51F31

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

Preview Lab → · Contrast checker → · Palette generator →

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