#AF313F#AF313F

#AF313F is a mid, vivid red. Relative luminance 0.117; OKLCH L 50.9% C 0.162 H 19.0°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF313F
RGBrgb(175, 49, 63)
HSLhsl(353, 56%, 44%)
HSVhsv(353, 72%, 69%)
CMYKcmyk(0%, 72%, 64%, 31.4%)
CIE-LABlab(40.69, 51.43, 21.98)
CIE-LCHlch(40.69, 55.93, 23.14°)
OKLaboklab(50.87% 0.1528 0.0527)
OKLCHoklch(50.87% 0.162 19)
XYZxyz(19.6767, 11.6723, 5.9185)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF313F #31AFA1
analogous
#AF317E #AF313F #AF6231
triadic
#AF313F #3FAF31 #313FAF
tetradic
#AF313F #7EAF31 #31AFA1 #6231AF
square
#AF313F #7EAF31 #31AFA1 #6231AF
split-complementary
#AF313F #31AF62 #317EAF
monochromatic
#4F161D #7F242E #AF313F #CE4F5D #DB7F89

Accessibility & contrast

On white

6.30
#AF313F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF313F
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF313F#FFFFFF#000000##FFFFFF
##AF313F1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534F3F
Deuteranopia (green-blind)
#736A3B
Tritanopia (blue-blind)
#C00837
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af313f;
/* rgb */ color: rgb(175, 49, 63);
/* oklch */ color: oklch(50.9% 0.162 19.0);
Tailwind
colors: {
  custom: {
    50: '#ce7274',
    500: '#af313f',
    950: '#000000',
  },
}
SCSS
$custom: #af313f;
$custom-light: #ce7274;
$custom-dark: #000000;
JSON
{
  "hex": "#af313f",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 63
  },
  "hsl": {
    "h": 353.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50871,
    "c": 0.1616,
    "h": 19
  },
  "luminance": 0.11669
}

Semantic roles & 50–950 ramp

primary
#AF313F
secondary
#78C4BC
accent
#E0CF48
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #AF313F

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

Preview Lab → · Contrast checker → · Palette generator →

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