#AF2038#AF2038

#AF2038 is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.3% C 0.177 H 18.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#AF2038
RGBrgb(175, 32, 56)
HSLhsl(350, 69%, 41%)
HSVhsv(350, 82%, 69%)
CMYKcmyk(0%, 81.7%, 68%, 31.4%)
CIE-LABlab(38.61, 56.50, 23.71)
CIE-LCHlch(38.61, 61.27, 22.77°)
OKLaboklab(49.29% 0.1675 0.0558)
OKLCHoklch(49.29% 0.177 18.4)
XYZxyz(18.9117, 10.4355, 4.7591)
Luminance0.1043 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2038 #20AF97
analogous
#AF207F #AF2038 #AF4F20
triadic
#AF2038 #38AF20 #2038AF
tetradic
#AF2038 #7FAF20 #20AF97 #4F20AF
square
#AF2038 #7FAF20 #20AF97 #4F20AF
split-complementary
#AF2038 #20AF4F #207FAF
monochromatic
#480D17 #7B1727 #AF2038 #DA334F #E3667B

Accessibility & contrast

On white

6.80
#AF2038 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#AF2038 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2038
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2038#FFFFFF#000000##FFFFFF
##AF20381.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4838
Deuteranopia (green-blind)
#706634
Tritanopia (blue-blind)
#C0002B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #af2038;
/* rgb */ color: rgb(175, 32, 56);
/* oklch */ color: oklch(49.3% 0.177 18.4);
Tailwind
colors: {
  custom: {
    50: '#cf6b6e',
    500: '#af2038',
    950: '#000000',
  },
}
SCSS
$custom: #af2038;
$custom-light: #cf6b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#af2038",
  "rgb": {
    "r": 175,
    "g": 32,
    "b": 56
  },
  "hsl": {
    "h": 349.93,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4929,
    "c": 0.17657,
    "h": 18.4
  },
  "luminance": 0.10433
}

Semantic roles & 50–950 ramp

primary
#AF2038
secondary
#62C8B7
accent
#ECCE3C
background
#FDF6F6
surface
#FBECEB
border
#D4C7C6
text
#150807
muted
#837A7A

Preview Lab

Preview with #AF2038

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

Preview Lab → · Contrast checker → · Palette generator →

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