#AF2828#AF2828

#AF2828 is a mid, vivid red. Relative luminance 0.108; OKLCH L 49.7% C 0.172 H 26.1°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#AF2828
RGBrgb(175, 40, 40)
HSLhsl(0, 63%, 42%)
HSVhsv(0, 77%, 69%)
CMYKcmyk(0%, 77.1%, 77.1%, 31.4%)
CIE-LABlab(39.22, 53.42, 34.15)
CIE-LCHlch(39.22, 63.41, 32.59°)
OKLaboklab(49.67% 0.1541 0.0756)
OKLCHoklch(49.67% 0.172 26.1)
XYZxyz(18.8232, 10.7877, 3.0982)
Luminance0.1079 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2828 #28AFAF
analogous
#AF286C #AF2828 #AF6C28
triadic
#AF2828 #28AF28 #2828AF
tetradic
#AF2828 #6CAF28 #28AFAF #6C28AF
square
#AF2828 #6CAF28 #28AFAF #6C28AF
split-complementary
#AF2828 #28AF6C #286CAF
monochromatic
#4B1111 #7D1D1D #AF2828 #D44141 #DF7373

Accessibility & contrast

On white

6.65
#AF2828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#AF2828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2828
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2828#FFFFFF#000000##FFFFFF
##AF28281.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A26
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#C1002A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #af2828;
/* rgb */ color: rgb(175, 40, 40);
/* oklch */ color: oklch(49.7% 0.172 26.1);
Tailwind
colors: {
  custom: {
    50: '#d06e62',
    500: '#af2828',
    950: '#000000',
  },
}
SCSS
$custom: #af2828;
$custom-light: #d06e62;
$custom-dark: #000000;
JSON
{
  "hex": "#af2828",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 40
  },
  "hsl": {
    "h": 0,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49667,
    "c": 0.17166,
    "h": 26.1
  },
  "luminance": 0.10785
}

Semantic roles & 50–950 ramp

primary
#AF2828
secondary
#6DC6C6
accent
#E6E642
background
#FEF7F5
surface
#FCEDEA
border
#D5C8C6
text
#160805
muted
#847B79

Preview Lab

Preview with #AF2828

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

Preview Lab → · Contrast checker → · Palette generator →

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