#AF342F#AF342F

#AF342F is a mid, vivid red. Relative luminance 0.118; OKLCH L 50.9% C 0.160 H 26.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AF342F
RGBrgb(175, 52, 47)
HSLhsl(2, 58%, 44%)
HSVhsv(2, 73%, 69%)
CMYKcmyk(0%, 70.3%, 73.1%, 31.4%)
CIE-LABlab(40.86, 49.41, 31.89)
CIE-LCHlch(40.86, 58.81, 32.84°)
OKLaboklab(50.92% 0.143 0.0723)
OKLCHoklch(50.92% 0.16 26.8)
XYZxyz(19.4224, 11.7781, 3.9395)
Luminance0.1177 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF342F #2FAAAF
analogous
#AF2F6A #AF342F #AF742F
triadic
#AF342F #2FAF34 #342FAF
tetradic
#AF342F #6AAF2F #2FAAAF #742FAF
square
#AF342F #6AAF2F #2FAAAF #742FAF
split-complementary
#AF342F #2FAF74 #2F6AAF
monochromatic
#4F1715 #7F2622 #AF342F #CF514C #DC807C

Accessibility & contrast

On white

6.26
#AF342F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF342F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF342F
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF342F#FFFFFF#000000##FFFFFF
##AF342F1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574F2D
Deuteranopia (green-blind)
#766A2B
Tritanopia (blue-blind)
#C10834
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af342f;
/* rgb */ color: rgb(175, 52, 47);
/* oklch */ color: oklch(50.9% 0.160 26.8);
Tailwind
colors: {
  custom: {
    50: '#cf7368',
    500: '#af342f',
    950: '#000000',
  },
}
SCSS
$custom: #af342f;
$custom-light: #cf7368;
$custom-dark: #000000;
JSON
{
  "hex": "#af342f",
  "rgb": {
    "r": 175,
    "g": 52,
    "b": 47
  },
  "hsl": {
    "h": 2.344,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.16024,
    "h": 26.8
  },
  "luminance": 0.11775
}

Semantic roles & 50–950 ramp

primary
#AF342F
secondary
#75C1C4
accent
#DBE147
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AF342F

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

Preview Lab → · Contrast checker → · Palette generator →

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