#AF402E#AF402E

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

Color values

HEX#AF402E
RGBrgb(175, 64, 46)
HSLhsl(8, 58%, 43%)
HSVhsv(8, 74%, 69%)
CMYKcmyk(0%, 63.4%, 73.7%, 31.4%)
CIE-LABlab(42.73, 44.27, 34.58)
CIE-LCHlch(42.73, 56.17, 37.99°)
OKLaboklab(52.32% 0.1267 0.078)
OKLCHoklch(52.32% 0.149 31.6)
XYZxyz(20.0079, 12.9808, 4.0362)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF402E #2E9DAF
analogous
#AF2E5C #AF402E #AF802E
triadic
#AF402E #2EAF40 #402EAF
tetradic
#AF402E #5CAF2E #2E9DAF #802EAF
square
#AF402E #5CAF2E #2E9DAF #802EAF
split-complementary
#AF402E #2EAF80 #2E5CAF
monochromatic
#4E1D15 #7F2E21 #AF402E #D05D4B #DC897B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF402E#FFFFFF#000000##FFFFFF
##AF402E1.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)
#5F562B
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#C0253C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af402e;
/* rgb */ color: rgb(175, 64, 46);
/* oklch */ color: oklch(52.3% 0.149 31.6);
Tailwind
colors: {
  custom: {
    50: '#ce7a67',
    500: '#af402e',
    950: '#000000',
  },
}
SCSS
$custom: #af402e;
$custom-light: #ce7a67;
$custom-dark: #000000;
JSON
{
  "hex": "#af402e",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 46
  },
  "hsl": {
    "h": 8.372,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5232,
    "c": 0.14873,
    "h": 31.6
  },
  "luminance": 0.12978
}

Semantic roles & 50–950 ramp

primary
#AF402E
secondary
#74B9C5
accent
#CCE246
background
#FDF7F6
surface
#FBEEEB
border
#D4C9C6
text
#150906
muted
#837B7A

Preview Lab

Preview with #AF402E

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

Preview Lab → · Contrast checker → · Palette generator →

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