#AF4E82#AF4E82

#AF4E82 is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.3% C 0.140 H 349.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF4E82
RGBrgb(175, 78, 130)
HSLhsl(328, 38%, 50%)
HSVhsv(328, 55%, 69%)
CMYKcmyk(0%, 55.4%, 25.7%, 31.4%)
CIE-LABlab(47.21, 45.48, -10.05)
CIE-LCHlch(47.21, 46.58, 347.54°)
OKLaboklab(56.31% 0.1372 -0.0262)
OKLCHoklch(56.31% 0.14 349.2)
XYZxyz(24.4337, 16.1766, 22.9503)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E82 #4EAF7B
analogous
#AC4EAF #AF4E82 #AF4E52
triadic
#AF4E82 #82AF4E #4E82AF
tetradic
#AF4E82 #AFAC4E #4EAF7B #4E52AF
square
#AF4E82 #AFAC4E #4EAF7B #4E52AF
split-complementary
#AF4E82 #52AF4E #4EAFAC
monochromatic
#5A2843 #853B63 #AF4E82 #C378A0 #D6A2BE

Accessibility & contrast

On white

4.96
#AF4E82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AF4E82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E82
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E82#FFFFFF#000000##FFFFFF
##AF4E821.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#596584
Deuteranopia (green-blind)
#737680
Tritanopia (blue-blind)
#BA4B62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4e82;
/* rgb */ color: rgb(175, 78, 130);
/* oklch */ color: oklch(56.3% 0.140 349.2);
Tailwind
colors: {
  custom: {
    50: '#ca84a6',
    500: '#af4e82',
    950: '#000000',
  },
}
SCSS
$custom: #af4e82;
$custom-light: #ca84a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e82",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 130
  },
  "hsl": {
    "h": 327.835,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56314,
    "c": 0.1397,
    "h": 349.2
  },
  "luminance": 0.16174
}

Semantic roles & 50–950 ramp

primary
#AF4E82
secondary
#96C3AB
accent
#CE905A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF4E82

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

Preview Lab → · Contrast checker → · Palette generator →

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