#AF2228#AF2228

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

Color values

HEX#AF2228
RGBrgb(175, 34, 40)
HSLhsl(357, 67%, 41%)
HSVhsv(357, 81%, 69%)
CMYKcmyk(0%, 80.6%, 77.1%, 31.4%)
CIE-LABlab(38.58, 55.24, 33.45)
CIE-LCHlch(38.58, 64.58, 31.20°)
OKLaboklab(49.19% 0.1599 0.074)
OKLCHoklch(49.19% 0.176 24.8)
XYZxyz(18.6365, 10.4142, 3.0359)
Luminance0.1041 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2228 #22AFA9
analogous
#AF226E #AF2228 #AF6222
triadic
#AF2228 #28AF22 #2228AF
tetradic
#AF2228 #6EAF22 #22AFA9 #6222AF
square
#AF2228 #6EAF22 #22AFA9 #6222AF
split-complementary
#AF2228 #22AF62 #226EAF
monochromatic
#490E11 #7C181C #AF2228 #D8363D #E2696F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2228#FFFFFF#000000##FFFFFF
##AF22281.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)
#4F4727
Deuteranopia (green-blind)
#716622
Tritanopia (blue-blind)
#C10026
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #af2228;
/* rgb */ color: rgb(175, 34, 40);
/* oklch */ color: oklch(49.2% 0.176 24.8);
Tailwind
colors: {
  custom: {
    50: '#d06c62',
    500: '#af2228',
    950: '#000000',
  },
}
SCSS
$custom: #af2228;
$custom-light: #d06c62;
$custom-dark: #000000;
JSON
{
  "hex": "#af2228",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 357.447,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49188,
    "c": 0.17618,
    "h": 24.8
  },
  "luminance": 0.10411
}

Semantic roles & 50–950 ramp

primary
#AF2228
secondary
#65C8C4
accent
#EAE33D
background
#FEF6F5
surface
#FCECEA
border
#D5C7C6
text
#160805
muted
#847A79

Preview Lab

Preview with #AF2228

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

Preview Lab → · Contrast checker → · Palette generator →

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