#AF3838#AF3838

#AF3838 is a mid, vivid red. Relative luminance 0.122; OKLCH L 51.5% C 0.155 H 24.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#AF3838
RGBrgb(175, 56, 56)
HSLhsl(0, 52%, 45%)
HSVhsv(0, 68%, 69%)
CMYKcmyk(0%, 68%, 68%, 31.4%)
CIE-LABlab(41.58, 48.26, 27.38)
CIE-LCHlch(41.58, 55.48, 29.57°)
OKLaboklab(51.5% 0.1412 0.064)
OKLCHoklch(51.5% 0.155 24.4)
XYZxyz(19.8093, 12.2307, 5.0583)
Luminance0.1223 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3838 #38AFAF
analogous
#AF3873 #AF3838 #AF7338
triadic
#AF3838 #38AF38 #3838AF
tetradic
#AF3838 #73AF38 #38AFAF #7338AF
square
#AF3838 #73AF38 #38AFAF #7338AF
split-complementary
#AF3838 #38AF73 #3873AF
monochromatic
#521A1A #812929 #AF3838 #CA5A5A #D98888

Accessibility & contrast

On white

6.09
#AF3838 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF3838 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3838
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3838#FFFFFF#000000##FFFFFF
##AF38381.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#595237
Deuteranopia (green-blind)
#766C34
Tritanopia (blue-blind)
#C01839
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af3838;
/* rgb */ color: rgb(175, 56, 56);
/* oklch */ color: oklch(51.5% 0.155 24.4);
Tailwind
colors: {
  custom: {
    50: '#ce766e',
    500: '#af3838',
    950: '#000000',
  },
}
SCSS
$custom: #af3838;
$custom-light: #ce766e;
$custom-dark: #000000;
JSON
{
  "hex": "#af3838",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 56
  },
  "hsl": {
    "h": 0,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51497,
    "c": 0.15506,
    "h": 24.4
  },
  "luminance": 0.12228
}

Semantic roles & 50–950 ramp

primary
#AF3838
secondary
#80C3C3
accent
#DBDB4D
background
#FDF7F6
surface
#FBEDEC
border
#D4C8C7
text
#150907
muted
#837B7A

Preview Lab

Preview with #AF3838

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

Preview Lab → · Contrast checker → · Palette generator →

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