#AF2F27#AF2F27

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

Color values

HEX#AF2F27
RGBrgb(175, 47, 39)
HSLhsl(4, 64%, 42%)
HSVhsv(4, 78%, 69%)
CMYKcmyk(0%, 73.1%, 77.7%, 31.4%)
CIE-LABlab(40.08, 50.98, 35.64)
CIE-LCHlch(40.08, 62.20, 34.96°)
OKLaboklab(50.3% 0.1462 0.0785)
OKLCHoklch(50.3% 0.166 28.2)
XYZxyz(19.0641, 11.2964, 3.0957)
Luminance0.1129 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F27 #27A7AF
analogous
#AF2763 #AF2F27 #AF7327
triadic
#AF2F27 #27AF2F #2F27AF
tetradic
#AF2F27 #63AF27 #27A7AF #7327AF
square
#AF2F27 #63AF27 #27A7AF #7327AF
split-complementary
#AF2F27 #27AF73 #2763AF
monochromatic
#4B1411 #7D221C #AF2F27 #D4483F #DF7871

Accessibility & contrast

On white

6.44
#AF2F27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2F27
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F27#FFFFFF#000000##FFFFFF
##AF2F271.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2f27;
/* rgb */ color: rgb(175, 47, 39);
/* oklch */ color: oklch(50.3% 0.166 28.2);
Tailwind
colors: {
  custom: {
    50: '#d07162',
    500: '#af2f27',
    950: '#000000',
  },
}
SCSS
$custom: #af2f27;
$custom-light: #d07162;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f27",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 39
  },
  "hsl": {
    "h": 3.529,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50301,
    "c": 0.16597,
    "h": 28.2
  },
  "luminance": 0.11293
}

Semantic roles & 50–950 ramp

primary
#AF2F27
secondary
#6BC1C6
accent
#DDE741
background
#FDF7F5
surface
#FBEDEA
border
#D4C8C6
text
#160805
muted
#847B79

Preview Lab

Preview with #AF2F27

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

Preview Lab → · Contrast checker → · Palette generator →

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