#AF2A5C#AF2A5C

#AF2A5C is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.9% C 0.172 H 3.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AF2A5C
RGBrgb(175, 42, 92)
HSLhsl(337, 61%, 43%)
HSVhsv(337, 76%, 69%)
CMYKcmyk(0%, 76%, 47.4%, 31.4%)
CIE-LABlab(40.48, 56.10, 3.47)
CIE-LCHlch(40.48, 56.20, 3.54°)
OKLaboklab(50.94% 0.1719 0.0095)
OKLCHoklch(50.94% 0.172 3.2)
XYZxyz(20.4406, 11.5453, 11.2752)
Luminance0.1154 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A5C #2AAF7D
analogous
#AF2A9E #AF2A5C #AF3B2A
triadic
#AF2A5C #5CAF2A #2A5CAF
tetradic
#AF2A5C #9EAF2A #2AAF7D #3B2AAF
square
#AF2A5C #9EAF2A #2AAF7D #3B2AAF
split-complementary
#AF2A5C #2AAF3B #2A9EAF
monochromatic
#4C1228 #7E1E42 #AF2A5C #D24479 #DE759D

Accessibility & contrast

On white

6.35
#AF2A5C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#AF2A5C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A5C
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A5C#FFFFFF#000000##FFFFFF
##AF2A5C1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4F5D
Deuteranopia (green-blind)
#6D6959
Tritanopia (blue-blind)
#BE0C40
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2a5c;
/* rgb */ color: rgb(175, 42, 92);
/* oklch */ color: oklch(50.9% 0.172 3.2);
Tailwind
colors: {
  custom: {
    50: '#cd7089',
    500: '#af2a5c',
    950: '#000000',
  },
}
SCSS
$custom: #af2a5c;
$custom-light: #cd7089;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a5c",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 92
  },
  "hsl": {
    "h": 337.444,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50937,
    "c": 0.17213,
    "h": 3.2
  },
  "luminance": 0.11543
}

Semantic roles & 50–950 ramp

primary
#AF2A5C
secondary
#6FC6A5
accent
#E4A843
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C

Preview Lab

Preview with #AF2A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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