#AF402C#AF402C

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

Color values

HEX#AF402C
RGBrgb(175, 64, 44)
HSLhsl(9, 60%, 43%)
HSVhsv(9, 75%, 69%)
CMYKcmyk(0%, 63.4%, 74.9%, 31.4%)
CIE-LABlab(42.71, 44.18, 35.68)
CIE-LCHlch(42.71, 56.78, 38.92°)
OKLaboklab(52.3% 0.126 0.0799)
OKLCHoklch(52.3% 0.149 32.4)
XYZxyz(19.9694, 12.9654, 3.8334)
Luminance0.1296 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF402C #2C9BAF
analogous
#AF2C5A #AF402C #AF812C
triadic
#AF402C #2CAF40 #402CAF
tetradic
#AF402C #5AAF2C #2C9BAF #812CAF
square
#AF402C #5AAF2C #2C9BAF #812CAF
split-complementary
#AF402C #2CAF81 #2C5AAF
monochromatic
#4D1C13 #7E2E20 #AF402C #D15C47 #DD8878

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF402C#FFFFFF#000000##FFFFFF
##AF402C1.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)
#5F5529
Deuteranopia (green-blind)
#7A6E28
Tritanopia (blue-blind)
#C0243C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af402c;
/* rgb */ color: rgb(175, 64, 44);
/* oklch */ color: oklch(52.3% 0.149 32.4);
Tailwind
colors: {
  custom: {
    50: '#ce7a66',
    500: '#af402c',
    950: '#000000',
  },
}
SCSS
$custom: #af402c;
$custom-light: #ce7a66;
$custom-dark: #000000;
JSON
{
  "hex": "#af402c",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 44
  },
  "hsl": {
    "h": 9.16,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52295,
    "c": 0.14918,
    "h": 32.4
  },
  "luminance": 0.12963
}

Semantic roles & 50–950 ramp

primary
#AF402C
secondary
#72B8C5
accent
#CBE345
background
#FDF7F6
surface
#FBEEEB
border
#D4C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AF402C

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

Preview Lab → · Contrast checker → · Palette generator →

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