#AF2F26#AF2F26

#AF2F26 is a mid, vivid red. Relative luminance 0.113; OKLCH L 50.3% C 0.166 H 28.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AF2F26
RGBrgb(175, 47, 38)
HSLhsl(4, 64%, 42%)
HSVhsv(4, 78%, 69%)
CMYKcmyk(0%, 73.1%, 78.3%, 31.4%)
CIE-LABlab(40.06, 50.94, 36.19)
CIE-LCHlch(40.06, 62.49, 35.39°)
OKLaboklab(50.29% 0.1459 0.0794)
OKLCHoklch(50.29% 0.166 28.6)
XYZxyz(19.0478, 11.2899, 3.0096)
Luminance0.1129 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F26 #26A6AF
analogous
#AF2661 #AF2F26 #AF7426
triadic
#AF2F26 #26AF2F #2F26AF
tetradic
#AF2F26 #61AF26 #26A6AF #7426AF
square
#AF2F26 #61AF26 #26A6AF #7426AF
split-complementary
#AF2F26 #26AF74 #2661AF
monochromatic
#4A1410 #7D211B #AF2F26 #D5473D #E07770

Accessibility & contrast

On white

6.45
#AF2F26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#AF2F26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F26
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F26#FFFFFF#000000##FFFFFF
##AF2F261.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554D24
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#C1002E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af2f26;
/* rgb */ color: rgb(175, 47, 38);
/* oklch */ color: oklch(50.3% 0.166 28.6);
Tailwind
colors: {
  custom: {
    50: '#d07161',
    500: '#af2f26',
    950: '#000000',
  },
}
SCSS
$custom: #af2f26;
$custom-light: #d07161;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f26",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 38
  },
  "hsl": {
    "h": 3.942,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.50289,
    "c": 0.16612,
    "h": 28.6
  },
  "luminance": 0.11287
}

Semantic roles & 50–950 ramp

primary
#AF2F26
secondary
#6AC1C7
accent
#DCE740
background
#FEF7F5
surface
#FCEDEA
border
#D5C8C6
text
#160805
muted
#847B79

Preview Lab

Preview with #AF2F26

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

Preview Lab → · Contrast checker → · Palette generator →

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