#AF312A#AF312A

#AF312A is a mid, vivid red. Relative luminance 0.115; OKLCH L 50.5% C 0.164 H 27.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF312A
RGBrgb(175, 49, 42)
HSLhsl(3, 61%, 43%)
HSVhsv(3, 76%, 69%)
CMYKcmyk(0%, 72%, 76%, 31.4%)
CIE-LABlab(40.38, 50.35, 34.25)
CIE-LCHlch(40.38, 60.90, 34.23°)
OKLaboklab(50.54% 0.1449 0.0763)
OKLCHoklch(50.54% 0.164 27.8)
XYZxyz(19.1976, 11.4807, 3.3952)
Luminance0.1148 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF312A #2AA8AF
analogous
#AF2A65 #AF312A #AF742A
triadic
#AF312A #2AAF31 #312AAF
tetradic
#AF312A #65AF2A #2AA8AF #742AAF
square
#AF312A #65AF2A #2AA8AF #742AAF
split-complementary
#AF312A #2AAF74 #2A65AF
monochromatic
#4C1512 #7E231E #AF312A #D24C44 #DE7B75

Accessibility & contrast

On white

6.37
#AF312A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#AF312A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF312A
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF312A#FFFFFF#000000##FFFFFF
##AF312A1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564E28
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#C10031
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af312a;
/* rgb */ color: rgb(175, 49, 42);
/* oklch */ color: oklch(50.5% 0.164 27.8);
Tailwind
colors: {
  custom: {
    50: '#cf7264',
    500: '#af312a',
    950: '#000000',
  },
}
SCSS
$custom: #af312a;
$custom-light: #cf7264;
$custom-dark: #000000;
JSON
{
  "hex": "#af312a",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 42
  },
  "hsl": {
    "h": 3.158,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50538,
    "c": 0.16375,
    "h": 27.8
  },
  "luminance": 0.11478
}

Semantic roles & 50–950 ramp

primary
#AF312A
secondary
#6FC1C6
accent
#DCE443
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150805
muted
#837B7A

Preview Lab

Preview with #AF312A

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

Preview Lab → · Contrast checker → · Palette generator →

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