#AF2842#AF2842

#AF2842 is a mid, vivid red. Relative luminance 0.110; OKLCH L 50.1% C 0.170 H 15.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#AF2842
RGBrgb(175, 40, 66)
HSLhsl(348, 63%, 42%)
HSVhsv(348, 77%, 69%)
CMYKcmyk(0%, 77.1%, 62.3%, 31.4%)
CIE-LABlab(39.63, 54.74, 18.72)
CIE-LCHlch(39.63, 57.85, 18.88°)
OKLaboklab(50.1% 0.1639 0.0455)
OKLCHoklch(50.1% 0.17 15.5)
XYZxyz(19.4234, 11.0278, 6.2590)
Luminance0.1103 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2842 #28AF95
analogous
#AF2886 #AF2842 #AF5128
triadic
#AF2842 #42AF28 #2842AF
tetradic
#AF2842 #86AF28 #28AF95 #5128AF
square
#AF2842 #86AF28 #28AF95 #5128AF
split-complementary
#AF2842 #28AF51 #2886AF
monochromatic
#4B111C #7D1D2F #AF2842 #D4415D #DF7387

Accessibility & contrast

On white

6.55
#AF2842 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#AF2842 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2842
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2842#FFFFFF#000000##FFFFFF
##AF28421.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4B42
Deuteranopia (green-blind)
#70673E
Tritanopia (blue-blind)
#C00033
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2842;
/* rgb */ color: rgb(175, 40, 66);
/* oklch */ color: oklch(50.1% 0.170 15.5);
Tailwind
colors: {
  custom: {
    50: '#ce6e76',
    500: '#af2842',
    950: '#000000',
  },
}
SCSS
$custom: #af2842;
$custom-light: #ce6e76;
$custom-dark: #000000;
JSON
{
  "hex": "#af2842",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 66
  },
  "hsl": {
    "h": 348.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.501,
    "c": 0.17014,
    "h": 15.5
  },
  "luminance": 0.11025
}

Semantic roles & 50–950 ramp

primary
#AF2842
secondary
#6DC6B5
accent
#E6C642
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #AF2842

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

Preview Lab → · Contrast checker → · Palette generator →

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