#AF212A#AF212A

#AF212A is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.1% C 0.177 H 24.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#AF212A
RGBrgb(175, 33, 42)
HSLhsl(356, 68%, 41%)
HSVhsv(356, 81%, 69%)
CMYKcmyk(0%, 81.1%, 76%, 31.4%)
CIE-LABlab(38.50, 55.59, 32.18)
CIE-LCHlch(38.50, 64.23, 30.07°)
OKLaboklab(49.14% 0.1614 0.0718)
OKLCHoklch(49.14% 0.177 24)
XYZxyz(18.6432, 10.3718, 3.2104)
Luminance0.1037 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF212A #21AFA6
analogous
#AF2171 #AF212A #AF5F21
triadic
#AF212A #2AAF21 #212AAF
tetradic
#AF212A #71AF21 #21AFA6 #5F21AF
square
#AF212A #71AF21 #21AFA6 #5F21AF
split-complementary
#AF212A #21AF5F #2171AF
monochromatic
#480E11 #7C171E #AF212A #D9343F #E36870

Accessibility & contrast

On white

6.83
#AF212A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#AF212A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF212A
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF212A#FFFFFF#000000##FFFFFF
##AF212A1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4729
Deuteranopia (green-blind)
#716524
Tritanopia (blue-blind)
#C10026
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #af212a;
/* rgb */ color: rgb(175, 33, 42);
/* oklch */ color: oklch(49.1% 0.177 24.0);
Tailwind
colors: {
  custom: {
    50: '#d06b64',
    500: '#af212a',
    950: '#000000',
  },
}
SCSS
$custom: #af212a;
$custom-light: #d06b64;
$custom-dark: #000000;
JSON
{
  "hex": "#af212a",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 42
  },
  "hsl": {
    "h": 356.197,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49141,
    "c": 0.17669,
    "h": 24
  },
  "luminance": 0.10369
}

Semantic roles & 50–950 ramp

primary
#AF212A
secondary
#64C8C2
accent
#EBE03D
background
#FEF6F5
surface
#FCECEA
border
#D5C7C6
text
#160805
muted
#847A79

Preview Lab

Preview with #AF212A

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

Preview Lab → · Contrast checker → · Palette generator →

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