#AF2227#AF2227

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

Color values

HEX#AF2227
RGBrgb(175, 34, 39)
HSLhsl(358, 67%, 41%)
HSVhsv(358, 81%, 69%)
CMYKcmyk(0%, 80.6%, 77.7%, 31.4%)
CIE-LABlab(38.56, 55.20, 34.02)
CIE-LCHlch(38.56, 64.84, 31.65°)
OKLaboklab(49.18% 0.1595 0.075)
OKLCHoklch(49.18% 0.176 25.2)
XYZxyz(18.6197, 10.4075, 2.9475)
Luminance0.1040 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2227 #22AFAA
analogous
#AF226D #AF2227 #AF6322
triadic
#AF2227 #27AF22 #2227AF
tetradic
#AF2227 #6DAF22 #22AFAA #6322AF
square
#AF2227 #6DAF22 #22AFAA #6322AF
split-complementary
#AF2227 #22AF63 #226DAF
monochromatic
#490E10 #7C181C #AF2227 #D8363C #E2696E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2227#FFFFFF#000000##FFFFFF
##AF22271.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)
#4F4725
Deuteranopia (green-blind)
#716621
Tritanopia (blue-blind)
#C10026
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #af2227;
/* rgb */ color: rgb(175, 34, 39);
/* oklch */ color: oklch(49.2% 0.176 25.2);
Tailwind
colors: {
  custom: {
    50: '#d06c61',
    500: '#af2227',
    950: '#000000',
  },
}
SCSS
$custom: #af2227;
$custom-light: #d06c61;
$custom-dark: #000000;
JSON
{
  "hex": "#af2227",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 39
  },
  "hsl": {
    "h": 357.872,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49176,
    "c": 0.17628,
    "h": 25.2
  },
  "luminance": 0.10404
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2227

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

Preview Lab → · Contrast checker → · Palette generator →

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