#AF2838#AF2838

#AF2838 is a mid, vivid red. Relative luminance 0.109; OKLCH L 49.9% C 0.170 H 20.0°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#AF2838
RGBrgb(175, 40, 56)
HSLhsl(353, 63%, 42%)
HSVhsv(353, 77%, 69%)
CMYKcmyk(0%, 77.1%, 68%, 31.4%)
CIE-LABlab(39.45, 54.15, 24.75)
CIE-LCHlch(39.45, 59.54, 24.56°)
OKLaboklab(49.91% 0.16 0.0582)
OKLCHoklch(49.91% 0.17 20)
XYZxyz(19.1539, 10.9200, 4.8398)
Luminance0.1092 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2838 #28AF9F
analogous
#AF287C #AF2838 #AF5C28
triadic
#AF2838 #38AF28 #2838AF
tetradic
#AF2838 #7CAF28 #28AF9F #5C28AF
square
#AF2838 #7CAF28 #28AF9F #5C28AF
split-complementary
#AF2838 #28AF5C #287CAF
monochromatic
#4B1118 #7D1D28 #AF2838 #D44152 #DF737F

Accessibility & contrast

On white

6.60
#AF2838 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#AF2838 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2838
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2838#FFFFFF#000000##FFFFFF
##AF28381.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504B38
Deuteranopia (green-blind)
#726734
Tritanopia (blue-blind)
#C0002F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2838;
/* rgb */ color: rgb(175, 40, 56);
/* oklch */ color: oklch(49.9% 0.170 20.0);
Tailwind
colors: {
  custom: {
    50: '#cf6e6e',
    500: '#af2838',
    950: '#000000',
  },
}
SCSS
$custom: #af2838;
$custom-light: #cf6e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#af2838",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 352.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49906,
    "c": 0.17023,
    "h": 20
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#AF2838
secondary
#6DC6BB
accent
#E6D242
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150807
muted
#837B7A

Preview Lab

Preview with #AF2838

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

Preview Lab → · Contrast checker → · Palette generator →

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