#AF342A#AF342A

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

Color values

HEX#AF342A
RGBrgb(175, 52, 42)
HSLhsl(5, 61%, 43%)
HSVhsv(5, 76%, 69%)
CMYKcmyk(0%, 70.3%, 76%, 31.4%)
CIE-LABlab(40.80, 49.20, 34.71)
CIE-LCHlch(40.80, 60.21, 35.21°)
OKLaboklab(50.85% 0.1412 0.0773)
OKLCHoklch(50.85% 0.161 28.7)
XYZxyz(19.3273, 11.7400, 3.4384)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF342A #2AA5AF
analogous
#AF2A63 #AF342A #AF762A
triadic
#AF342A #2AAF34 #342AAF
tetradic
#AF342A #63AF2A #2AA5AF #762AAF
square
#AF342A #63AF2A #2AA5AF #762AAF
split-complementary
#AF342A #2AAF76 #2A63AF
monochromatic
#4C1712 #7E251E #AF342A #D24F44 #DE7D75

Accessibility & contrast

On white

6.27
#AF342A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF342A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF342A
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF342A#FFFFFF#000000##FFFFFF
##AF342A1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584F28
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#C10633
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af342a;
/* rgb */ color: rgb(175, 52, 42);
/* oklch */ color: oklch(50.9% 0.161 28.7);
Tailwind
colors: {
  custom: {
    50: '#cf7364',
    500: '#af342a',
    950: '#000000',
  },
}
SCSS
$custom: #af342a;
$custom-light: #cf7364;
$custom-dark: #000000;
JSON
{
  "hex": "#af342a",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 42
  },
  "hsl": {
    "h": 4.511,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50853,
    "c": 0.16103,
    "h": 28.7
  },
  "luminance": 0.11737
}

Semantic roles & 50–950 ramp

primary
#AF342A
secondary
#6FBFC6
accent
#D8E443
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150905
muted
#837B7A

Preview Lab

Preview with #AF342A

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

Preview Lab → · Contrast checker → · Palette generator →

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