#AF2F4D#AF2F4D

#AF2F4D is a mid, vivid red. Relative luminance 0.117; OKLCH L 51.0% C 0.164 H 11.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AF2F4D
RGBrgb(175, 47, 77)
HSLhsl(346, 58%, 44%)
HSVhsv(346, 73%, 69%)
CMYKcmyk(0%, 73.1%, 56%, 31.4%)
CIE-LABlab(40.71, 53.13, 13.25)
CIE-LCHlch(40.71, 54.76, 14.00°)
OKLaboklab(50.98% 0.1607 0.0333)
OKLCHoklch(50.98% 0.164 11.7)
XYZxyz(20.0372, 11.6856, 8.2202)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F4D #2FAF91
analogous
#AF2F8D #AF2F4D #AF512F
triadic
#AF2F4D #4DAF2F #2F4DAF
tetradic
#AF2F4D #8DAF2F #2FAF91 #512FAF
square
#AF2F4D #8DAF2F #2FAF91 #512FAF
split-complementary
#AF2F4D #2FAF51 #2F8DAF
monochromatic
#4F1523 #7F2238 #AF2F4D #CF4C6B #DC7C93

Accessibility & contrast

On white

6.29
#AF2F4D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF2F4D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F4D
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F4D#FFFFFF#000000##FFFFFF
##AF2F4D1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504F4D
Deuteranopia (green-blind)
#716A4A
Tritanopia (blue-blind)
#BF0C3B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2f4d;
/* rgb */ color: rgb(175, 47, 77);
/* oklch */ color: oklch(51.0% 0.164 11.7);
Tailwind
colors: {
  custom: {
    50: '#cd727e',
    500: '#af2f4d',
    950: '#000000',
  },
}
SCSS
$custom: #af2f4d;
$custom-light: #cd727e;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f4d",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 77
  },
  "hsl": {
    "h": 345.938,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5098,
    "c": 0.16409,
    "h": 11.7
  },
  "luminance": 0.11683
}

Semantic roles & 50–950 ramp

primary
#AF2F4D
secondary
#75C4B2
accent
#E1BD47
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#150809
muted
#837B7B

Preview Lab

Preview with #AF2F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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