#AB251F#AB251F

#AB251F is a mid, vivid red. Relative luminance 0.101; OKLCH L 48.6% C 0.171 H 28.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AB251F
RGBrgb(171, 37, 31)
HSLhsl(3, 69%, 40%)
HSVhsv(3, 82%, 67%)
CMYKcmyk(0%, 78.4%, 81.9%, 32.9%)
CIE-LABlab(37.99, 52.84, 37.72)
CIE-LCHlch(37.99, 64.92, 35.52°)
OKLaboklab(48.58% 0.1509 0.0808)
OKLCHoklch(48.58% 0.171 28.2)
XYZxyz(17.7056, 10.0828, 2.3100)
Luminance0.1008 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB251F #1FA5AB
analogous
#AB1F5F #AB251F #AB6B1F
triadic
#AB251F #1FAB25 #251FAB
tetradic
#AB251F #5FAB1F #1FA5AB #6B1FAB
square
#AB251F #5FAB1F #1FA5AB #6B1FAB
split-complementary
#AB251F #1FAB6B #1F5FAB
monochromatic
#430F0C #771A16 #AB251F #D9352E #E36762

Accessibility & contrast

On white

6.96
#AB251F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#AB251F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB251F
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB251F#FFFFFF#000000##FFFFFF
##AB251F1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F471C
Deuteranopia (green-blind)
#706418
Tritanopia (blue-blind)
#BD0025
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #ab251f;
/* rgb */ color: rgb(171, 37, 31);
/* oklch */ color: oklch(48.6% 0.171 28.2);
Tailwind
colors: {
  custom: {
    50: '#cd6c5c',
    500: '#ab251f',
    950: '#000000',
  },
}
SCSS
$custom: #ab251f;
$custom-light: #cd6c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#ab251f",
  "rgb": {
    "r": 171,
    "g": 37,
    "b": 31
  },
  "hsl": {
    "h": 2.571,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4858,
    "c": 0.17117,
    "h": 28.2
  },
  "luminance": 0.1008
}

Semantic roles & 50–950 ramp

primary
#AB251F
secondary
#5EC3C7
accent
#E5EC3C
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#160804
muted
#847A79

Preview Lab

Preview with #AB251F

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

Preview Lab → · Contrast checker → · Palette generator →

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