#AF402D#AF402D

#AF402D is a mid, vivid red. Relative luminance 0.130; OKLCH L 52.3% C 0.149 H 32.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF402D
RGBrgb(175, 64, 45)
HSLhsl(9, 59%, 43%)
HSVhsv(9, 74%, 69%)
CMYKcmyk(0%, 63.4%, 74.3%, 31.4%)
CIE-LABlab(42.72, 44.22, 35.13)
CIE-LCHlch(42.72, 56.48, 38.46°)
OKLaboklab(52.31% 0.1263 0.0789)
OKLCHoklch(52.31% 0.149 32)
XYZxyz(19.9884, 12.9730, 3.9336)
Luminance0.1297 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF402D #2D9CAF
analogous
#AF2D5B #AF402D #AF812D
triadic
#AF402D #2DAF40 #402DAF
tetradic
#AF402D #5BAF2D #2D9CAF #812DAF
square
#AF402D #5BAF2D #2D9CAF #812DAF
split-complementary
#AF402D #2DAF81 #2D5BAF
monochromatic
#4E1C14 #7E2E20 #AF402D #D05D49 #DD887A

Accessibility & contrast

On white

5.84
#AF402D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF402D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF402D
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF402D#FFFFFF#000000##FFFFFF
##AF402D1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562A
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#C0243C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af402d;
/* rgb */ color: rgb(175, 64, 45);
/* oklch */ color: oklch(52.3% 0.149 32.0);
Tailwind
colors: {
  custom: {
    50: '#ce7a67',
    500: '#af402d',
    950: '#000000',
  },
}
SCSS
$custom: #af402d;
$custom-light: #ce7a67;
$custom-dark: #000000;
JSON
{
  "hex": "#af402d",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 45
  },
  "hsl": {
    "h": 8.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52308,
    "c": 0.14896,
    "h": 32
  },
  "luminance": 0.1297
}

Semantic roles & 50–950 ramp

primary
#AF402D
secondary
#73B9C5
accent
#CBE246
background
#FDF7F6
surface
#FBEEEB
border
#D4C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AF402D

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

Preview Lab → · Contrast checker → · Palette generator →

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