#AF2840#AF2840

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

Color values

HEX#AF2840
RGBrgb(175, 40, 64)
HSLhsl(349, 63%, 42%)
HSVhsv(349, 77%, 69%)
CMYKcmyk(0%, 77.1%, 63.4%, 31.4%)
CIE-LABlab(39.59, 54.61, 19.93)
CIE-LCHlch(39.59, 58.13, 20.05°)
OKLaboklab(50.06% 0.1631 0.0481)
OKLCHoklch(50.06% 0.17 16.4)
XYZxyz(19.3654, 11.0046, 5.9539)
Luminance0.1100 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2840 #28AF97
analogous
#AF2884 #AF2840 #AF5328
triadic
#AF2840 #40AF28 #2840AF
tetradic
#AF2840 #84AF28 #28AF97 #5328AF
square
#AF2840 #84AF28 #28AF97 #5328AF
split-complementary
#AF2840 #28AF53 #2884AF
monochromatic
#4B111C #7D1D2E #AF2840 #D4415B #DF7386

Accessibility & contrast

On white

6.56
#AF2840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#AF2840 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2840
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2840#FFFFFF#000000##FFFFFF
##AF28401.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4B40
Deuteranopia (green-blind)
#71673C
Tritanopia (blue-blind)
#C00032
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2840;
/* rgb */ color: rgb(175, 40, 64);
/* oklch */ color: oklch(50.1% 0.170 16.4);
Tailwind
colors: {
  custom: {
    50: '#ce6e74',
    500: '#af2840',
    950: '#000000',
  },
}
SCSS
$custom: #af2840;
$custom-light: #ce6e74;
$custom-dark: #000000;
JSON
{
  "hex": "#af2840",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 349.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50058,
    "c": 0.17009,
    "h": 16.4
  },
  "luminance": 0.11002
}

Semantic roles & 50–950 ramp

primary
#AF2840
secondary
#6DC6B6
accent
#E6C942
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B

Preview Lab

Preview with #AF2840

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

Preview Lab → · Contrast checker → · Palette generator →

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