#AF2A4B#AF2A4B

#AF2A4B is a mid, vivid red. Relative luminance 0.113; OKLCH L 50.5% C 0.169 H 11.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#AF2A4B
RGBrgb(175, 42, 75)
HSLhsl(345, 61%, 43%)
HSVhsv(345, 76%, 69%)
CMYKcmyk(0%, 76%, 57.1%, 31.4%)
CIE-LABlab(40.05, 54.70, 13.61)
CIE-LCHlch(40.05, 56.37, 13.97°)
OKLaboklab(50.47% 0.1654 0.034)
OKLCHoklch(50.47% 0.169 11.6)
XYZxyz(19.7791, 11.2807, 7.7911)
Luminance0.1128 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A4B #2AAF8E
analogous
#AF2A8D #AF2A4B #AF4C2A
triadic
#AF2A4B #4BAF2A #2A4BAF
tetradic
#AF2A4B #8DAF2A #2AAF8E #4C2AAF
square
#AF2A4B #8DAF2A #2AAF8E #4C2AAF
split-complementary
#AF2A4B #2AAF4C #2A8DAF
monochromatic
#4C1221 #7E1E36 #AF2A4B #D24467 #DE758F

Accessibility & contrast

On white

6.45
#AF2A4B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#AF2A4B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A4B
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A4B#FFFFFF#000000##FFFFFF
##AF2A4B1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4D4B
Deuteranopia (green-blind)
#706848
Tritanopia (blue-blind)
#BF0038
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af2a4b;
/* rgb */ color: rgb(175, 42, 75);
/* oklch */ color: oklch(50.5% 0.169 11.6);
Tailwind
colors: {
  custom: {
    50: '#cd707d',
    500: '#af2a4b',
    950: '#000000',
  },
}
SCSS
$custom: #af2a4b;
$custom-light: #cd707d;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a4b",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 75
  },
  "hsl": {
    "h": 345.113,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50474,
    "c": 0.1689,
    "h": 11.6
  },
  "luminance": 0.11278
}

Semantic roles & 50–950 ramp

primary
#AF2A4B
secondary
#6FC6B0
accent
#E4BC43
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#150809
muted
#837B7B

Preview Lab

Preview with #AF2A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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