#AF5042#AF5042

#AF5042 is a mid, vivid red. Relative luminance 0.152; OKLCH L 54.9% C 0.127 H 30.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF5042
RGBrgb(175, 80, 66)
HSLhsl(8, 45%, 47%)
HSVhsv(8, 62%, 69%)
CMYKcmyk(0%, 54.3%, 62.3%, 31.4%)
CIE-LABlab(45.97, 37.69, 26.87)
CIE-LCHlch(45.97, 46.29, 35.48°)
OKLaboklab(54.86% 0.11 0.0641)
OKLCHoklch(54.86% 0.127 30.2)
XYZxyz(21.5331, 15.2472, 6.9623)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5042 #42A1AF
analogous
#AF426B #AF5042 #AF8642
triadic
#AF5042 #42AF50 #5042AF
tetradic
#AF5042 #6BAF42 #42A1AF #8642AF
square
#AF5042 #6BAF42 #42A1AF #8642AF
split-complementary
#AF5042 #42AF86 #426BAF
monochromatic
#562720 #833C31 #AF5042 #C67468 #D79D95

Accessibility & contrast

On white

5.19
#AF5042 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF5042 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5042
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5042#FFFFFF#000000##FFFFFF
##AF50421.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#686040
Deuteranopia (green-blind)
#807540
Tritanopia (blue-blind)
#BF3F4D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af5042;
/* rgb */ color: rgb(175, 80, 66);
/* oklch */ color: oklch(54.9% 0.127 30.2);
Tailwind
colors: {
  custom: {
    50: '#cc8476',
    500: '#af5042',
    950: '#000000',
  },
}
SCSS
$custom: #af5042;
$custom-light: #cc8476;
$custom-dark: #000000;
JSON
{
  "hex": "#af5042",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 66
  },
  "hsl": {
    "h": 7.706,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54856,
    "c": 0.12732,
    "h": 30.2
  },
  "luminance": 0.15245
}

Semantic roles & 50–950 ramp

primary
#AF5042
secondary
#8ABBC2
accent
#C4D553
background
#FDF8F7
surface
#FAEFED
border
#D3CAC8
text
#140B08
muted
#837C7B

Preview Lab

Preview with #AF5042

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

Preview Lab → · Contrast checker → · Palette generator →

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