#AF4242#AF4242

#AF4242 is a mid, vivid red. Relative luminance 0.134; OKLCH L 52.9% C 0.143 H 23.3°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF4242
RGBrgb(175, 66, 66)
HSLhsl(0, 45%, 47%)
HSVhsv(0, 62%, 69%)
CMYKcmyk(0%, 62.3%, 62.3%, 31.4%)
CIE-LABlab(43.37, 44.50, 23.58)
CIE-LCHlch(43.37, 50.36, 27.92°)
OKLaboklab(52.89% 0.1313 0.0567)
OKLCHoklch(52.89% 0.143 23.3)
XYZxyz(20.6127, 13.4065, 6.6555)
Luminance0.1340 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4242 #42AFAF
analogous
#AF4279 #AF4242 #AF7942
triadic
#AF4242 #42AF42 #4242AF
tetradic
#AF4242 #79AF42 #42AFAF #7942AF
square
#AF4242 #79AF42 #42AFAF #7942AF
split-complementary
#AF4242 #42AF79 #4279AF
monochromatic
#562020 #833131 #AF4242 #C66868 #D79595

Accessibility & contrast

On white

5.71
#AF4242 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF4242 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4242
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4242#FFFFFF#000000##FFFFFF
##AF42421.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5841
Deuteranopia (green-blind)
#796F3F
Tritanopia (blue-blind)
#C02C43
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af4242;
/* rgb */ color: rgb(175, 66, 66);
/* oklch */ color: oklch(52.9% 0.143 23.3);
Tailwind
colors: {
  custom: {
    50: '#cd7b76',
    500: '#af4242',
    950: '#000000',
  },
}
SCSS
$custom: #af4242;
$custom-light: #cd7b76;
$custom-dark: #000000;
JSON
{
  "hex": "#af4242",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 66
  },
  "hsl": {
    "h": 0,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52892,
    "c": 0.14303,
    "h": 23.3
  },
  "luminance": 0.13404
}

Semantic roles & 50–950 ramp

primary
#AF4242
secondary
#8AC2C2
accent
#D5D553
background
#FDF7F7
surface
#FAEEED
border
#D3C9C8
text
#150A08
muted
#837C7B

Preview Lab

Preview with #AF4242

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

Preview Lab → · Contrast checker → · Palette generator →

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