#AF402A#AF402A

#AF402A is a mid, vivid red. Relative luminance 0.129; OKLCH L 52.3% C 0.150 H 33.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF402A
RGBrgb(175, 64, 42)
HSLhsl(10, 61%, 43%)
HSVhsv(10, 76%, 69%)
CMYKcmyk(0%, 63.4%, 76%, 31.4%)
CIE-LABlab(42.69, 44.09, 36.76)
CIE-LCHlch(42.69, 57.40, 39.82°)
OKLaboklab(52.27% 0.1253 0.0818)
OKLCHoklch(52.27% 0.15 33.1)
XYZxyz(19.9327, 12.9507, 3.6402)
Luminance0.1295 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF402A #2A99AF
analogous
#AF2A56 #AF402A #AF832A
triadic
#AF402A #2AAF40 #402AAF
tetradic
#AF402A #56AF2A #2A99AF #832AAF
square
#AF402A #56AF2A #2A99AF #832AAF
split-complementary
#AF402A #2AAF83 #2A56AF
monochromatic
#4C1C12 #7E2E1E #AF402A #D25C44 #DE8775

Accessibility & contrast

On white

5.85
#AF402A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF402A
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF402A#FFFFFF#000000##FFFFFF
##AF402A1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af402a;
/* rgb */ color: rgb(175, 64, 42);
/* oklch */ color: oklch(52.3% 0.150 33.1);
Tailwind
colors: {
  custom: {
    50: '#cf7a65',
    500: '#af402a',
    950: '#000000',
  },
}
SCSS
$custom: #af402a;
$custom-light: #cf7a65;
$custom-dark: #000000;
JSON
{
  "hex": "#af402a",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 42
  },
  "hsl": {
    "h": 9.925,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52271,
    "c": 0.14963,
    "h": 33.1
  },
  "luminance": 0.12948
}

Semantic roles & 50–950 ramp

primary
#AF402A
secondary
#6FB7C6
accent
#CAE443
background
#FDF7F6
surface
#FBEEEB
border
#D4C9C6
text
#150905
muted
#837B7A

Preview Lab

Preview with #AF402A

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

Preview Lab → · Contrast checker → · Palette generator →

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