#AF313D#AF313D

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

Color values

HEX#AF313D
RGBrgb(175, 49, 61)
HSLhsl(354, 56%, 44%)
HSVhsv(354, 72%, 69%)
CMYKcmyk(0%, 72%, 65.1%, 31.4%)
CIE-LABlab(40.66, 51.31, 23.17)
CIE-LCHlch(40.66, 56.30, 24.31°)
OKLaboklab(50.83% 0.152 0.0552)
OKLCHoklch(50.83% 0.162 20)
XYZxyz(19.6219, 11.6504, 5.6295)
Luminance0.1165 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF313D #31AFA3
analogous
#AF317C #AF313D #AF6431
triadic
#AF313D #3DAF31 #313DAF
tetradic
#AF313D #7CAF31 #31AFA3 #6431AF
square
#AF313D #7CAF31 #31AFA3 #6431AF
split-complementary
#AF313D #31AF64 #317CAF
monochromatic
#4F161C #7F242C #AF313D #CE4F5B #DB7F88

Accessibility & contrast

On white

6.31
#AF313D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF313D
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF313D#FFFFFF#000000##FFFFFF
##AF313D1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544F3D
Deuteranopia (green-blind)
#746A39
Tritanopia (blue-blind)
#C00636
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af313d;
/* rgb */ color: rgb(175, 49, 61);
/* oklch */ color: oklch(50.8% 0.162 20.0);
Tailwind
colors: {
  custom: {
    50: '#ce7272',
    500: '#af313d',
    950: '#000000',
  },
}
SCSS
$custom: #af313d;
$custom-light: #ce7272;
$custom-dark: #000000;
JSON
{
  "hex": "#af313d",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 61
  },
  "hsl": {
    "h": 354.286,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50833,
    "c": 0.16168,
    "h": 20
  },
  "luminance": 0.11648
}

Semantic roles & 50–950 ramp

primary
#AF313D
secondary
#78C4BD
accent
#E0D148
background
#FDF7F6
surface
#FBEDEC
border
#D4C8C7
text
#150808
muted
#837B7B

Preview Lab

Preview with #AF313D

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

Preview Lab → · Contrast checker → · Palette generator →

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