#AF4F81#AF4F81

#AF4F81 is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.4% C 0.138 H 350.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF4F81
RGBrgb(175, 79, 129)
HSLhsl(329, 38%, 50%)
HSVhsv(329, 55%, 69%)
CMYKcmyk(0%, 54.9%, 26.3%, 31.4%)
CIE-LABlab(47.36, 44.85, -9.22)
CIE-LCHlch(47.36, 45.79, 348.38°)
OKLaboklab(56.42% 0.1354 -0.024)
OKLCHoklch(56.42% 0.138 350)
XYZxyz(24.4385, 16.2931, 22.6224)
Luminance0.1629 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F81 #4FAF7D
analogous
#AD4FAF #AF4F81 #AF4F51
triadic
#AF4F81 #81AF4F #4F81AF
tetradic
#AF4F81 #AFAD4F #4FAF7D #4F51AF
square
#AF4F81 #AFAD4F #4FAF7D #4F51AF
split-complementary
#AF4F81 #51AF4F #4FAFAD
monochromatic
#5B2943 #853C62 #AF4F81 #C2799F #D5A3BD

Accessibility & contrast

On white

4.93
#AF4F81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AF4F81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4F81
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4F81#FFFFFF#000000##FFFFFF
##AF4F811.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A6683
Deuteranopia (green-blind)
#74777F
Tritanopia (blue-blind)
#BA4C62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4f81;
/* rgb */ color: rgb(175, 79, 129);
/* oklch */ color: oklch(56.4% 0.138 350.0);
Tailwind
colors: {
  custom: {
    50: '#ca84a5',
    500: '#af4f81',
    950: '#000000',
  },
}
SCSS
$custom: #af4f81;
$custom-light: #ca84a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f81",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 129
  },
  "hsl": {
    "h": 328.75,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56415,
    "c": 0.13752,
    "h": 350
  },
  "luminance": 0.16291
}

Semantic roles & 50–950 ramp

primary
#AF4F81
secondary
#97C3AC
accent
#CE915A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF4F81

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

Preview Lab → · Contrast checker → · Palette generator →

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