#AF2831#AF2831

#AF2831 is a mid, vivid red. Relative luminance 0.109; OKLCH L 49.8% C 0.171 H 22.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#AF2831
RGBrgb(175, 40, 49)
HSLhsl(356, 63%, 42%)
HSVhsv(356, 77%, 69%)
CMYKcmyk(0%, 77.1%, 72%, 31.4%)
CIE-LABlab(39.34, 53.80, 28.92)
CIE-LCHlch(39.34, 61.08, 28.26°)
OKLaboklab(49.79% 0.1573 0.0662)
OKLCHoklch(49.79% 0.171 22.8)
XYZxyz(18.9945, 10.8562, 4.0005)
Luminance0.1085 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2831 #28AFA6
analogous
#AF2875 #AF2831 #AF6328
triadic
#AF2831 #31AF28 #2831AF
tetradic
#AF2831 #75AF28 #28AFA6 #6328AF
square
#AF2831 #75AF28 #28AFA6 #6328AF
split-complementary
#AF2831 #28AF63 #2875AF
monochromatic
#4B1115 #7D1D23 #AF2831 #D4414A #DF737A

Accessibility & contrast

On white

6.62
#AF2831 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#AF2831 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2831
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2831#FFFFFF#000000##FFFFFF
##AF28311.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A30
Deuteranopia (green-blind)
#72672C
Tritanopia (blue-blind)
#C1002D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2831;
/* rgb */ color: rgb(175, 40, 49);
/* oklch */ color: oklch(49.8% 0.171 22.8);
Tailwind
colors: {
  custom: {
    50: '#cf6e69',
    500: '#af2831',
    950: '#000000',
  },
}
SCSS
$custom: #af2831;
$custom-light: #cf6e69;
$custom-dark: #000000;
JSON
{
  "hex": "#af2831",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 49
  },
  "hsl": {
    "h": 356,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49791,
    "c": 0.17071,
    "h": 22.8
  },
  "luminance": 0.10853
}

Semantic roles & 50–950 ramp

primary
#AF2831
secondary
#6DC6C0
accent
#E6DB42
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A

Preview Lab

Preview with #AF2831

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

Preview Lab → · Contrast checker → · Palette generator →

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