#AF4E7F#AF4E7F

#AF4E7F is a mid, vivid pink. Relative luminance 0.161; OKLCH L 56.2% C 0.138 H 350.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF4E7F
RGBrgb(175, 78, 127)
HSLhsl(330, 38%, 50%)
HSVhsv(330, 55%, 69%)
CMYKcmyk(0%, 55.4%, 27.4%, 31.4%)
CIE-LABlab(47.10, 45.07, -8.39)
CIE-LCHlch(47.10, 45.84, 349.45°)
OKLaboklab(56.2% 0.1363 -0.0217)
OKLCHoklch(56.2% 0.138 350.9)
XYZxyz(24.2353, 16.0973, 21.9053)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E7F #4EAF7E
analogous
#AF4EAF #AF4E7F #AF4E4E
triadic
#AF4E7F #7FAF4E #4E7FAF
tetradic
#AF4E7F #AFAF4E #4EAF7E #4E4EAF
square
#AF4E7F #AFAF4E #4EAF7E #4E4EAF
split-complementary
#AF4E7F #4EAF4E #4EAFAF
monochromatic
#5A2842 #853B60 #AF4E7F #C3789D #D6A2BC

Accessibility & contrast

On white

4.98
#AF4E7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF4E7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E7F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E7F#FFFFFF#000000##FFFFFF
##AF4E7F1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A6581
Deuteranopia (green-blind)
#74767D
Tritanopia (blue-blind)
#BB4A61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4e7f;
/* rgb */ color: rgb(175, 78, 127);
/* oklch */ color: oklch(56.2% 0.138 350.9);
Tailwind
colors: {
  custom: {
    50: '#ca84a4',
    500: '#af4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #af4e7f;
$custom-light: #ca84a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e7f",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 329.691,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56203,
    "c": 0.13802,
    "h": 350.9
  },
  "luminance": 0.16095
}

Semantic roles & 50–950 ramp

primary
#AF4E7F
secondary
#96C3AC
accent
#CE935A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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