#AF2226#AF2226

#AF2226 is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.2% C 0.176 H 25.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#AF2226
RGBrgb(175, 34, 38)
HSLhsl(358, 67%, 41%)
HSVhsv(358, 81%, 69%)
CMYKcmyk(0%, 80.6%, 78.3%, 31.4%)
CIE-LABlab(38.55, 55.16, 34.59)
CIE-LCHlch(38.55, 65.11, 32.09°)
OKLaboklab(49.16% 0.1592 0.076)
OKLCHoklch(49.16% 0.176 25.5)
XYZxyz(18.6033, 10.4010, 2.8614)
Luminance0.1040 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2226 #22AFAB
analogous
#AF226C #AF2226 #AF6422
triadic
#AF2226 #26AF22 #2226AF
tetradic
#AF2226 #6CAF22 #22AFAB #6422AF
square
#AF2226 #6CAF22 #22AFAB #6422AF
split-complementary
#AF2226 #22AF64 #226CAF
monochromatic
#490E10 #7C181B #AF2226 #D8363B #E2696D

Accessibility & contrast

On white

6.82
#AF2226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#AF2226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2226
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2226#FFFFFF#000000##FFFFFF
##AF22261.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4724
Deuteranopia (green-blind)
#726620
Tritanopia (blue-blind)
#C10026
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #af2226;
/* rgb */ color: rgb(175, 34, 38);
/* oklch */ color: oklch(49.2% 0.176 25.5);
Tailwind
colors: {
  custom: {
    50: '#d06b61',
    500: '#af2226',
    950: '#000000',
  },
}
SCSS
$custom: #af2226;
$custom-light: #d06b61;
$custom-dark: #000000;
JSON
{
  "hex": "#af2226",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 38
  },
  "hsl": {
    "h": 358.298,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49164,
    "c": 0.17639,
    "h": 25.5
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#AF2226
secondary
#65C8C5
accent
#EAE53D
background
#FEF6F5
surface
#FCECE9
border
#D5C7C5
text
#160805
muted
#847A79

Preview Lab

Preview with #AF2226

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

Preview Lab → · Contrast checker → · Palette generator →

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