#AF272A#AF272A

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

Color values

HEX#AF272A
RGBrgb(175, 39, 42)
HSLhsl(359, 64%, 42%)
HSVhsv(359, 78%, 69%)
CMYKcmyk(0%, 77.7%, 76%, 31.4%)
CIE-LABlab(39.13, 53.82, 32.88)
CIE-LCHlch(39.13, 63.07, 31.42°)
OKLaboklab(49.61% 0.1558 0.0733)
OKLCHoklch(49.61% 0.172 25.2)
XYZxyz(18.8249, 10.7351, 3.2709)
Luminance0.1073 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF272A #27AFAC
analogous
#AF276E #AF272A #AF6827
triadic
#AF272A #2AAF27 #272AAF
tetradic
#AF272A #6EAF27 #27AFAC #6827AF
square
#AF272A #6EAF27 #27AFAC #6827AF
split-complementary
#AF272A #27AF68 #276EAF
monochromatic
#4B1112 #7D1C1E #AF272A #D43F42 #DF7173

Accessibility & contrast

On white

6.67
#AF272A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#AF272A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF272A
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF272A#FFFFFF#000000##FFFFFF
##AF272A1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514929
Deuteranopia (green-blind)
#726725
Tritanopia (blue-blind)
#C1002A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #af272a;
/* rgb */ color: rgb(175, 39, 42);
/* oklch */ color: oklch(49.6% 0.172 25.2);
Tailwind
colors: {
  custom: {
    50: '#d06d64',
    500: '#af272a',
    950: '#000000',
  },
}
SCSS
$custom: #af272a;
$custom-light: #d06d64;
$custom-dark: #000000;
JSON
{
  "hex": "#af272a",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 42
  },
  "hsl": {
    "h": 358.676,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49608,
    "c": 0.17221,
    "h": 25.2
  },
  "luminance": 0.10732
}

Semantic roles & 50–950 ramp

primary
#AF272A
secondary
#6BC6C4
accent
#E7E341
background
#FEF7F6
surface
#FCEDEB
border
#D5C8C6
text
#160805
muted
#847B7A

Preview Lab

Preview with #AF272A

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

Preview Lab → · Contrast checker → · Palette generator →

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