#AF2F5B#AF2F5B

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

Color values

HEX#AF2F5B
RGBrgb(175, 47, 91)
HSLhsl(339, 58%, 44%)
HSVhsv(339, 73%, 69%)
CMYKcmyk(0%, 73.1%, 48%, 31.4%)
CIE-LABlab(41.06, 54.30, 4.93)
CIE-LCHlch(41.06, 54.53, 5.19°)
OKLaboklab(51.36% 0.166 0.0132)
OKLCHoklch(51.36% 0.167 4.5)
XYZxyz(20.5857, 11.9050, 11.1094)
Luminance0.1190 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F5B #2FAF83
analogous
#AF2F9B #AF2F5B #AF432F
triadic
#AF2F5B #5BAF2F #2F5BAF
tetradic
#AF2F5B #9BAF2F #2FAF83 #432FAF
square
#AF2F5B #9BAF2F #2FAF83 #432FAF
split-complementary
#AF2F5B #2FAF43 #2F9BAF
monochromatic
#4F1529 #7F2242 #AF2F5B #CF4C79 #DC7C9D

Accessibility & contrast

On white

6.21
#AF2F5B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2F5B
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F5B#FFFFFF#000000##FFFFFF
##AF2F5B1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D515C
Deuteranopia (green-blind)
#6F6A58
Tritanopia (blue-blind)
#BE1641
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2f5b;
/* rgb */ color: rgb(175, 47, 91);
/* oklch */ color: oklch(51.4% 0.167 4.5);
Tailwind
colors: {
  custom: {
    50: '#cc7289',
    500: '#af2f5b',
    950: '#000000',
  },
}
SCSS
$custom: #af2f5b;
$custom-light: #cc7289;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f5b",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 91
  },
  "hsl": {
    "h": 339.375,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51356,
    "c": 0.16655,
    "h": 4.5
  },
  "luminance": 0.11902
}

Semantic roles & 50–950 ramp

primary
#AF2F5B
secondary
#75C4A9
accent
#E1AC47
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14090B
muted
#837B7C

Preview Lab

Preview with #AF2F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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