#AF2F5F#AF2F5F

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

Color values

HEX#AF2F5F
RGBrgb(175, 47, 95)
HSLhsl(338, 58%, 44%)
HSVhsv(338, 73%, 69%)
CMYKcmyk(0%, 73.1%, 45.7%, 31.4%)
CIE-LABlab(41.18, 54.67, 2.58)
CIE-LCHlch(41.18, 54.73, 2.70°)
OKLaboklab(51.48% 0.1675 0.0072)
OKLCHoklch(51.48% 0.168 2.5)
XYZxyz(20.7629, 11.9759, 12.0425)
Luminance0.1197 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F5F #2FAF7F
analogous
#AF2F9F #AF2F5F #AF3F2F
triadic
#AF2F5F #5FAF2F #2F5FAF
tetradic
#AF2F5F #9FAF2F #2FAF7F #3F2FAF
square
#AF2F5F #9FAF2F #2FAF7F #3F2FAF
split-complementary
#AF2F5F #2FAF3F #2F9FAF
monochromatic
#4F152B #7F2245 #AF2F5F #CF4C7D #DC7CA0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2F5F#FFFFFF#000000##FFFFFF
##AF2F5F1.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)
#4C5160
Deuteranopia (green-blind)
#6E6A5C
Tritanopia (blue-blind)
#BE1943
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2f5f;
/* rgb */ color: rgb(175, 47, 95);
/* oklch */ color: oklch(51.5% 0.168 2.5);
Tailwind
colors: {
  custom: {
    50: '#cc728c',
    500: '#af2f5f',
    950: '#000000',
  },
}
SCSS
$custom: #af2f5f;
$custom-light: #cc728c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f5f",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 337.5,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51476,
    "c": 0.16764,
    "h": 2.5
  },
  "luminance": 0.11973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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