#AF2F5E#AF2F5E

#AF2F5E is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.4% C 0.167 H 3.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#AF2F5E
RGBrgb(175, 47, 94)
HSLhsl(338, 58%, 44%)
HSVhsv(338, 73%, 69%)
CMYKcmyk(0%, 73.1%, 46.3%, 31.4%)
CIE-LABlab(41.15, 54.58, 3.17)
CIE-LCHlch(41.15, 54.67, 3.32°)
OKLaboklab(51.44% 0.1671 0.0087)
OKLCHoklch(51.44% 0.167 3)
XYZxyz(20.7177, 11.9579, 11.8046)
Luminance0.1196 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F5E #2FAF80
analogous
#AF2F9E #AF2F5E #AF402F
triadic
#AF2F5E #5EAF2F #2F5EAF
tetradic
#AF2F5E #9EAF2F #2FAF80 #402FAF
square
#AF2F5E #9EAF2F #2FAF80 #402FAF
split-complementary
#AF2F5E #2FAF40 #2F9EAF
monochromatic
#4F152A #7F2244 #AF2F5E #CF4C7C #DC7CA0

Accessibility & contrast

On white

6.19
#AF2F5E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#AF2F5E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F5E
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F5E#FFFFFF#000000##FFFFFF
##AF2F5E1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C515F
Deuteranopia (green-blind)
#6E6A5B
Tritanopia (blue-blind)
#BE1843
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2f5e;
/* rgb */ color: rgb(175, 47, 94);
/* oklch */ color: oklch(51.4% 0.167 3.0);
Tailwind
colors: {
  custom: {
    50: '#cc728b',
    500: '#af2f5e',
    950: '#000000',
  },
}
SCSS
$custom: #af2f5e;
$custom-light: #cc728b;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f5e",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 94
  },
  "hsl": {
    "h": 337.969,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51445,
    "c": 0.16735,
    "h": 3
  },
  "luminance": 0.11955
}

Semantic roles & 50–950 ramp

primary
#AF2F5E
secondary
#75C4A7
accent
#E1A847
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090C
muted
#837B7D

Preview Lab

Preview with #AF2F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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