#AF402F#AF402F

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

Color values

HEX#AF402F
RGBrgb(175, 64, 47)
HSLhsl(8, 58%, 44%)
HSVhsv(8, 73%, 69%)
CMYKcmyk(0%, 63.4%, 73.1%, 31.4%)
CIE-LABlab(42.75, 44.32, 34.03)
CIE-LCHlch(42.75, 55.87, 37.52°)
OKLaboklab(52.33% 0.127 0.077)
OKLCHoklch(52.33% 0.149 31.2)
XYZxyz(20.0278, 12.9888, 4.1413)
Luminance0.1299 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF402F #2F9EAF
analogous
#AF2F5E #AF402F #AF802F
triadic
#AF402F #2FAF40 #402FAF
tetradic
#AF402F #5EAF2F #2F9EAF #802FAF
square
#AF402F #5EAF2F #2F9EAF #802FAF
split-complementary
#AF402F #2FAF80 #2F5EAF
monochromatic
#4F1D15 #7F2E22 #AF402F #CF5E4C #DC897C

Accessibility & contrast

On white

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

On black

3.60
#AF402F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF402F#FFFFFF#000000##FFFFFF
##AF402F1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562D
Deuteranopia (green-blind)
#7A6E2C
Tritanopia (blue-blind)
#C0253D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af402f;
/* rgb */ color: rgb(175, 64, 47);
/* oklch */ color: oklch(52.3% 0.149 31.2);
Tailwind
colors: {
  custom: {
    50: '#ce7a68',
    500: '#af402f',
    950: '#000000',
  },
}
SCSS
$custom: #af402f;
$custom-light: #ce7a68;
$custom-dark: #000000;
JSON
{
  "hex": "#af402f",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 47
  },
  "hsl": {
    "h": 7.969,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52333,
    "c": 0.14852,
    "h": 31.2
  },
  "luminance": 0.12986
}

Semantic roles & 50–950 ramp

primary
#AF402F
secondary
#75BAC4
accent
#CCE147
background
#FDF7F6
surface
#FBEEEB
border
#D4C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AF402F

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

Preview Lab → · Contrast checker → · Palette generator →

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