#AF2728#AF2728

#AF2728 is a mid, vivid red. Relative luminance 0.107; OKLCH L 49.6% C 0.172 H 25.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#AF2728
RGBrgb(175, 39, 40)
HSLhsl(360, 64%, 42%)
HSVhsv(360, 78%, 69%)
CMYKcmyk(0%, 77.7%, 77.1%, 31.4%)
CIE-LABlab(39.11, 53.74, 34.03)
CIE-LCHlch(39.11, 63.61, 32.34°)
OKLaboklab(49.58% 0.1551 0.0753)
OKLCHoklch(49.58% 0.172 25.9)
XYZxyz(18.7900, 10.7212, 3.0871)
Luminance0.1072 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2728 #27AFAE
analogous
#AF276C #AF2728 #AF6A27
triadic
#AF2728 #28AF27 #2728AF
tetradic
#AF2728 #6CAF27 #27AFAE #6A27AF
square
#AF2728 #6CAF27 #27AFAE #6A27AF
split-complementary
#AF2728 #27AF6A #276CAF
monochromatic
#4B1111 #7D1C1D #AF2728 #D43F40 #DF7172

Accessibility & contrast

On white

6.68
#AF2728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#AF2728 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2728
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2728#FFFFFF#000000##FFFFFF
##AF27281.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514926
Deuteranopia (green-blind)
#736722
Tritanopia (blue-blind)
#C10029
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #af2728;
/* rgb */ color: rgb(175, 39, 40);
/* oklch */ color: oklch(49.6% 0.172 25.9);
Tailwind
colors: {
  custom: {
    50: '#d06d62',
    500: '#af2728',
    950: '#000000',
  },
}
SCSS
$custom: #af2728;
$custom-light: #d06d62;
$custom-dark: #000000;
JSON
{
  "hex": "#af2728",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 40
  },
  "hsl": {
    "h": 359.559,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49583,
    "c": 0.17244,
    "h": 25.9
  },
  "luminance": 0.10718
}

Semantic roles & 50–950 ramp

primary
#AF2728
secondary
#6BC6C6
accent
#E7E541
background
#FEF7F5
surface
#FCEDEA
border
#D5C8C6
text
#160805
muted
#847B79

Preview Lab

Preview with #AF2728

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

Preview Lab → · Contrast checker → · Palette generator →

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