#AF2A5E#AF2A5E

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

Color values

HEX#AF2A5E
RGBrgb(175, 42, 94)
HSLhsl(337, 61%, 43%)
HSVhsv(337, 76%, 69%)
CMYKcmyk(0%, 76%, 46.3%, 31.4%)
CIE-LABlab(40.54, 56.28, 2.29)
CIE-LCHlch(40.54, 56.33, 2.33°)
OKLaboklab(51% 0.1726 0.0065)
OKLCHoklch(51% 0.173 2.2)
XYZxyz(20.5292, 11.5808, 11.7418)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A5E #2AAF7B
analogous
#AF2AA1 #AF2A5E #AF382A
triadic
#AF2A5E #5EAF2A #2A5EAF
tetradic
#AF2A5E #A1AF2A #2AAF7B #382AAF
square
#AF2A5E #A1AF2A #2AAF7B #382AAF
split-complementary
#AF2A5E #2AAF38 #2AA1AF
monochromatic
#4C1229 #7E1E43 #AF2A5E #D2447C #DE759E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2A5E#FFFFFF#000000##FFFFFF
##AF2A5E1.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)
#494F5F
Deuteranopia (green-blind)
#6D695B
Tritanopia (blue-blind)
#BE0E40
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2a5e;
/* rgb */ color: rgb(175, 42, 94);
/* oklch */ color: oklch(51.0% 0.173 2.2);
Tailwind
colors: {
  custom: {
    50: '#cc708b',
    500: '#af2a5e',
    950: '#000000',
  },
}
SCSS
$custom: #af2a5e;
$custom-light: #cc708b;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a5e",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 336.541,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50998,
    "c": 0.1727,
    "h": 2.2
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#AF2A5E
secondary
#6FC6A4
accent
#E4A543
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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