#AF4D7E#AF4D7E

#AF4D7E is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.0% C 0.139 H 351.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF4D7E
RGBrgb(175, 77, 126)
HSLhsl(330, 39%, 49%)
HSVhsv(330, 56%, 69%)
CMYKcmyk(0%, 56%, 28%, 31.4%)
CIE-LABlab(46.88, 45.42, -8.12)
CIE-LCHlch(46.88, 46.14, 349.87°)
OKLaboklab(56.03% 0.1375 -0.021)
OKLCHoklch(56.03% 0.139 351.3)
XYZxyz(24.0999, 15.9303, 21.5402)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4D7E #4DAF7E
analogous
#AF4DAF #AF4D7E #AF4D4D
triadic
#AF4D7E #7EAF4D #4D7EAF
tetradic
#AF4D7E #AFAF4D #4DAF7E #4D4DAF
square
#AF4D7E #AFAF4D #4DAF7E #4D4DAF
split-complementary
#AF4D7E #4DAF4D #4DAFAF
monochromatic
#5A2841 #853A5F #AF4D7E #C3769D #D6A1BB

Accessibility & contrast

On white

5.02
#AF4D7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AF4D7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4D7E
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4D7E#FFFFFF#000000##FFFFFF
##AF4D7E1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596480
Deuteranopia (green-blind)
#74767C
Tritanopia (blue-blind)
#BB4960
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4d7e;
/* rgb */ color: rgb(175, 77, 126);
/* oklch */ color: oklch(56.0% 0.139 351.3);
Tailwind
colors: {
  custom: {
    50: '#ca83a3',
    500: '#af4d7e',
    950: '#000000',
  },
}
SCSS
$custom: #af4d7e;
$custom-light: #ca83a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4d7e",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 126
  },
  "hsl": {
    "h": 330,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56028,
    "c": 0.13908,
    "h": 351.3
  },
  "luminance": 0.15928
}

Semantic roles & 50–950 ramp

primary
#AF4D7E
secondary
#95C3AC
accent
#CF9459
background
#FCF8FA
surface
#F9EFF3
border
#D2CACD
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF4D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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