#AF4F82#AF4F82

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

Color values

HEX#AF4F82
RGBrgb(175, 79, 130)
HSLhsl(328, 38%, 50%)
HSVhsv(328, 55%, 69%)
CMYKcmyk(0%, 54.9%, 25.7%, 31.4%)
CIE-LABlab(47.39, 44.99, -9.77)
CIE-LCHlch(47.39, 46.04, 347.75°)
OKLaboklab(56.45% 0.1357 -0.0255)
OKLCHoklch(56.45% 0.138 349.4)
XYZxyz(24.5053, 16.3198, 22.9742)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F82 #4FAF7C
analogous
#AC4FAF #AF4F82 #AF4F52
triadic
#AF4F82 #82AF4F #4F82AF
tetradic
#AF4F82 #AFAC4F #4FAF7C #4F52AF
square
#AF4F82 #AFAC4F #4FAF7C #4F52AF
split-complementary
#AF4F82 #52AF4F #4FAFAC
monochromatic
#5B2943 #853C63 #AF4F82 #C279A0 #D5A3BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4F82#FFFFFF#000000##FFFFFF
##AF4F821.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)
#5A6684
Deuteranopia (green-blind)
#747780
Tritanopia (blue-blind)
#BA4C63
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4f82;
/* rgb */ color: rgb(175, 79, 130);
/* oklch */ color: oklch(56.5% 0.138 349.4);
Tailwind
colors: {
  custom: {
    50: '#ca84a6',
    500: '#af4f82',
    950: '#000000',
  },
}
SCSS
$custom: #af4f82;
$custom-light: #ca84a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f82",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 130
  },
  "hsl": {
    "h": 328.125,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56452,
    "c": 0.13808,
    "h": 349.4
  },
  "luminance": 0.16318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4F82

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

Preview Lab → · Contrast checker → · Palette generator →

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