#AF2229#AF2229

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

Color values

HEX#AF2229
RGBrgb(175, 34, 41)
HSLhsl(357, 67%, 41%)
HSVhsv(357, 81%, 69%)
CMYKcmyk(0%, 80.6%, 76.6%, 31.4%)
CIE-LABlab(38.59, 55.27, 32.87)
CIE-LCHlch(38.59, 64.31, 30.74°)
OKLaboklab(49.2% 0.1602 0.0731)
OKLCHoklch(49.2% 0.176 24.5)
XYZxyz(18.6537, 10.4211, 3.1267)
Luminance0.1042 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2229 #22AFA8
analogous
#AF226F #AF2229 #AF6122
triadic
#AF2229 #29AF22 #2229AF
tetradic
#AF2229 #6FAF22 #22AFA8 #6122AF
square
#AF2229 #6FAF22 #22AFA8 #6122AF
split-complementary
#AF2229 #22AF61 #226FAF
monochromatic
#490E11 #7C181D #AF2229 #D8363E #E2696F

Accessibility & contrast

On white

6.81
#AF2229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2229
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2229#FFFFFF#000000##FFFFFF
##AF22291.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2229;
/* rgb */ color: rgb(175, 34, 41);
/* oklch */ color: oklch(49.2% 0.176 24.5);
Tailwind
colors: {
  custom: {
    50: '#d06c63',
    500: '#af2229',
    950: '#000000',
  },
}
SCSS
$custom: #af2229;
$custom-light: #d06c63;
$custom-dark: #000000;
JSON
{
  "hex": "#af2229",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 41
  },
  "hsl": {
    "h": 357.021,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49201,
    "c": 0.17608,
    "h": 24.5
  },
  "luminance": 0.10418
}

Semantic roles & 50–950 ramp

primary
#AF2229
secondary
#65C8C3
accent
#EAE23D
background
#FEF6F5
surface
#FCECEA
border
#D5C7C6
text
#160805
muted
#847A79

Preview Lab

Preview with #AF2229

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

Preview Lab → · Contrast checker → · Palette generator →

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