#AF3138#AF3138

#AF3138 is a mid, vivid red. Relative luminance 0.116; OKLCH L 50.7% C 0.162 H 22.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF3138
RGBrgb(175, 49, 56)
HSLhsl(357, 56%, 44%)
HSVhsv(357, 72%, 69%)
CMYKcmyk(0%, 72%, 68%, 31.4%)
CIE-LABlab(40.57, 51.02, 26.14)
CIE-LCHlch(40.57, 57.33, 27.13°)
OKLaboklab(50.74% 0.15 0.0613)
OKLCHoklch(50.74% 0.162 22.2)
XYZxyz(19.4934, 11.5990, 4.9530)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3138 #31AFA8
analogous
#AF3177 #AF3138 #AF6931
triadic
#AF3138 #38AF31 #3138AF
tetradic
#AF3138 #77AF31 #31AFA8 #6931AF
square
#AF3138 #77AF31 #31AFA8 #6931AF
split-complementary
#AF3138 #31AF69 #3177AF
monochromatic
#4F1619 #7F2429 #AF3138 #CE4F56 #DB7F84

Accessibility & contrast

On white

6.33
#AF3138 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AF3138 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3138
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3138#FFFFFF#000000##FFFFFF
##AF31381.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544E37
Deuteranopia (green-blind)
#746934
Tritanopia (blue-blind)
#C00335
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af3138;
/* rgb */ color: rgb(175, 49, 56);
/* oklch */ color: oklch(50.7% 0.162 22.2);
Tailwind
colors: {
  custom: {
    50: '#ce726e',
    500: '#af3138',
    950: '#000000',
  },
}
SCSS
$custom: #af3138;
$custom-light: #ce726e;
$custom-dark: #000000;
JSON
{
  "hex": "#af3138",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 56
  },
  "hsl": {
    "h": 356.667,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50744,
    "c": 0.16203,
    "h": 22.2
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#AF3138
secondary
#78C4C0
accent
#E0D748
background
#FDF7F6
surface
#FBEDEC
border
#D4C8C7
text
#150807
muted
#837B7A

Preview Lab

Preview with #AF3138

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

Preview Lab → · Contrast checker → · Palette generator →

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