#AF313B#AF313B

#AF313B is a mid, vivid red. Relative luminance 0.116; OKLCH L 50.8% C 0.162 H 20.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#AF313B
RGBrgb(175, 49, 59)
HSLhsl(355, 56%, 44%)
HSVhsv(355, 72%, 69%)
CMYKcmyk(0%, 72%, 66.3%, 31.4%)
CIE-LABlab(40.62, 51.19, 24.36)
CIE-LCHlch(40.62, 56.69, 25.45°)
OKLaboklab(50.8% 0.1512 0.0577)
OKLCHoklch(50.8% 0.162 20.9)
XYZxyz(19.5690, 11.6292, 5.3511)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF313B #31AFA5
analogous
#AF317A #AF313B #AF6631
triadic
#AF313B #3BAF31 #313BAF
tetradic
#AF313B #7AAF31 #31AFA5 #6631AF
square
#AF313B #7AAF31 #31AFA5 #6631AF
split-complementary
#AF313B #31AF66 #317AAF
monochromatic
#4F161B #7F242B #AF313B #CE4F59 #DB7F86

Accessibility & contrast

On white

6.32
#AF313B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AF313B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF313B
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF313B#FFFFFF#000000##FFFFFF
##AF313B1.006.323.336.32
#FFFFFF6.321.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544F3A
Deuteranopia (green-blind)
#746A37
Tritanopia (blue-blind)
#C00536
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af313b;
/* rgb */ color: rgb(175, 49, 59);
/* oklch */ color: oklch(50.8% 0.162 20.9);
Tailwind
colors: {
  custom: {
    50: '#ce7271',
    500: '#af313b',
    950: '#000000',
  },
}
SCSS
$custom: #af313b;
$custom-light: #ce7271;
$custom-dark: #000000;
JSON
{
  "hex": "#af313b",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 59
  },
  "hsl": {
    "h": 355.238,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50796,
    "c": 0.1618,
    "h": 20.9
  },
  "luminance": 0.11626
}

Semantic roles & 50–950 ramp

primary
#AF313B
secondary
#78C4BE
accent
#E0D448
background
#FDF7F6
surface
#FBEDEC
border
#D4C8C7
text
#150807
muted
#837B7A

Preview Lab

Preview with #AF313B

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

Preview Lab → · Contrast checker → · Palette generator →

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