#AF2A56#AF2A56

#AF2A56 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.8% C 0.171 H 6.2°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AF2A56
RGBrgb(175, 42, 86)
HSLhsl(340, 61%, 43%)
HSVhsv(340, 76%, 69%)
CMYKcmyk(0%, 76%, 50.9%, 31.4%)
CIE-LABlab(40.32, 55.57, 7.02)
CIE-LCHlch(40.32, 56.01, 7.20°)
OKLaboklab(50.76% 0.1697 0.0183)
OKLCHoklch(50.76% 0.171 6.2)
XYZxyz(20.1887, 11.4446, 9.9482)
Luminance0.1144 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A56 #2AAF83
analogous
#AF2A99 #AF2A56 #AF402A
triadic
#AF2A56 #56AF2A #2A56AF
tetradic
#AF2A56 #99AF2A #2AAF83 #402AAF
square
#AF2A56 #99AF2A #2AAF83 #402AAF
split-complementary
#AF2A56 #2AAF40 #2A99AF
monochromatic
#4C1225 #7E1E3E #AF2A56 #D24473 #DE7598

Accessibility & contrast

On white

6.39
#AF2A56 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AF2A56 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A56
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A56#FFFFFF#000000##FFFFFF
##AF2A561.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4E57
Deuteranopia (green-blind)
#6E6953
Tritanopia (blue-blind)
#BF063D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2a56;
/* rgb */ color: rgb(175, 42, 86);
/* oklch */ color: oklch(50.8% 0.171 6.2);
Tailwind
colors: {
  custom: {
    50: '#cd7085',
    500: '#af2a56',
    950: '#000000',
  },
}
SCSS
$custom: #af2a56;
$custom-light: #cd7085;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a56",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 340.15,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50761,
    "c": 0.17066,
    "h": 6.2
  },
  "luminance": 0.11442
}

Semantic roles & 50–950 ramp

primary
#AF2A56
secondary
#6FC6A9
accent
#E4AF43
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2A56

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

Preview Lab → · Contrast checker → · Palette generator →

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