#AF2E5F#AF2E5F

#AF2E5F is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.4% C 0.169 H 2.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#AF2E5F
RGBrgb(175, 46, 95)
HSLhsl(337, 58%, 43%)
HSVhsv(337, 74%, 69%)
CMYKcmyk(0%, 73.7%, 45.7%, 31.4%)
CIE-LABlab(41.05, 55.03, 2.40)
CIE-LCHlch(41.05, 55.08, 2.50°)
OKLaboklab(51.38% 0.1686 0.0068)
OKLCHoklch(51.38% 0.169 2.3)
XYZxyz(20.7234, 11.8969, 12.0293)
Luminance0.1189 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E5F #2EAF7E
analogous
#AF2E9F #AF2E5F #AF3D2E
triadic
#AF2E5F #5FAF2E #2E5FAF
tetradic
#AF2E5F #9FAF2E #2EAF7E #3D2EAF
square
#AF2E5F #9FAF2E #2EAF7E #3D2EAF
split-complementary
#AF2E5F #2EAF3D #2E9FAF
monochromatic
#4E152A #7F2145 #AF2E5F #D04B7D #DC7BA0

Accessibility & contrast

On white

6.22
#AF2E5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#AF2E5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E5F
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E5F#FFFFFF#000000##FFFFFF
##AF2E5F1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5160
Deuteranopia (green-blind)
#6E6A5C
Tritanopia (blue-blind)
#BE1743
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2e5f;
/* rgb */ color: rgb(175, 46, 95);
/* oklch */ color: oklch(51.4% 0.169 2.3);
Tailwind
colors: {
  custom: {
    50: '#cc728c',
    500: '#af2e5f',
    950: '#000000',
  },
}
SCSS
$custom: #af2e5f;
$custom-light: #cc728c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e5f",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 337.209,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51383,
    "c": 0.16874,
    "h": 2.3
  },
  "luminance": 0.11894
}

Semantic roles & 50–950 ramp

primary
#AF2E5F
secondary
#74C5A6
accent
#E2A746
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF2E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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