#AF2A5F#AF2A5F

#AF2A5F is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.0% C 0.173 H 1.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF2A5F
RGBrgb(175, 42, 95)
HSLhsl(336, 61%, 43%)
HSVhsv(336, 76%, 69%)
CMYKcmyk(0%, 76%, 45.7%, 31.4%)
CIE-LABlab(40.57, 56.37, 1.70)
CIE-LCHlch(40.57, 56.40, 1.73°)
OKLaboklab(51.03% 0.1729 0.005)
OKLCHoklch(51.03% 0.173 1.7)
XYZxyz(20.5744, 11.5988, 11.9796)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A5F #2AAF7A
analogous
#AF2AA2 #AF2A5F #AF372A
triadic
#AF2A5F #5FAF2A #2A5FAF
tetradic
#AF2A5F #A2AF2A #2AAF7A #372AAF
square
#AF2A5F #A2AF2A #2AAF7A #372AAF
split-complementary
#AF2A5F #2AAF37 #2AA2AF
monochromatic
#4C1229 #7E1E44 #AF2A5F #D2447D #DE759F

Accessibility & contrast

On white

6.33
#AF2A5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#AF2A5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A5F
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A5F#FFFFFF#000000##FFFFFF
##AF2A5F1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494F60
Deuteranopia (green-blind)
#6C695C
Tritanopia (blue-blind)
#BE0F41
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2a5f;
/* rgb */ color: rgb(175, 42, 95);
/* oklch */ color: oklch(51.0% 0.173 1.7);
Tailwind
colors: {
  custom: {
    50: '#cc708c',
    500: '#af2a5f',
    950: '#000000',
  },
}
SCSS
$custom: #af2a5f;
$custom-light: #cc708c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a5f",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 336.09,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51029,
    "c": 0.173,
    "h": 1.7
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#AF2A5F
secondary
#6FC6A3
accent
#E4A443
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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