#AF272B#AF272B

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

Color values

HEX#AF272B
RGBrgb(175, 39, 43)
HSLhsl(358, 64%, 42%)
HSVhsv(358, 78%, 69%)
CMYKcmyk(0%, 77.7%, 75.4%, 31.4%)
CIE-LABlab(39.14, 53.86, 32.30)
CIE-LCHlch(39.14, 62.80, 30.95°)
OKLaboklab(49.62% 0.1562 0.0723)
OKLCHoklch(49.62% 0.172 24.8)
XYZxyz(18.8430, 10.7424, 3.3664)
Luminance0.1074 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF272B #27AFAB
analogous
#AF276F #AF272B #AF6727
triadic
#AF272B #2BAF27 #272BAF
tetradic
#AF272B #6FAF27 #27AFAB #6727AF
square
#AF272B #6FAF27 #27AFAB #6727AF
split-complementary
#AF272B #27AF67 #276FAF
monochromatic
#4B1112 #7D1C1F #AF272B #D43F43 #DF7174

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF272B#FFFFFF#000000##FFFFFF
##AF272B1.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)
#51492A
Deuteranopia (green-blind)
#726726
Tritanopia (blue-blind)
#C1002A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #af272b;
/* rgb */ color: rgb(175, 39, 43);
/* oklch */ color: oklch(49.6% 0.172 24.8);
Tailwind
colors: {
  custom: {
    50: '#d06e64',
    500: '#af272b',
    950: '#000000',
  },
}
SCSS
$custom: #af272b;
$custom-light: #d06e64;
$custom-dark: #000000;
JSON
{
  "hex": "#af272b",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 43
  },
  "hsl": {
    "h": 358.235,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49621,
    "c": 0.1721,
    "h": 24.8
  },
  "luminance": 0.10739
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF272B

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

Preview Lab → · Contrast checker → · Palette generator →

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