#AF4F97#AF4F97

#AF4F97 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.3% C 0.152 H 338.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF4F97
RGBrgb(175, 79, 151)
HSLhsl(315, 38%, 50%)
HSVhsv(315, 55%, 69%)
CMYKcmyk(0%, 54.9%, 13.7%, 31.4%)
CIE-LABlab(48.19, 48.16, -21.14)
CIE-LCHlch(48.19, 52.60, 336.30°)
OKLaboklab(57.3% 0.1412 -0.057)
OKLCHoklch(57.3% 0.152 338)
XYZxyz(26.0614, 16.9423, 31.1697)
Luminance0.1694 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F97 #4FAF67
analogous
#974FAF #AF4F97 #AF4F67
triadic
#AF4F97 #97AF4F #4F97AF
tetradic
#AF4F97 #AF974F #4FAF67 #4F67AF
square
#AF4F97 #AF974F #4FAF67 #4F67AF
split-complementary
#AF4F97 #67AF4F #4FAF97
monochromatic
#5B294E #853C73 #AF4F97 #C279B0 #D5A3C9

Accessibility & contrast

On white

4.79
#AF4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF4F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4F97
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4F97#FFFFFF#000000##FFFFFF
##AF4F971.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526999
Deuteranopia (green-blind)
#6D7894
Tritanopia (blue-blind)
#B8526C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4f97;
/* rgb */ color: rgb(175, 79, 151);
/* oklch */ color: oklch(57.3% 0.152 338.0);
Tailwind
colors: {
  custom: {
    50: '#c985b5',
    500: '#af4f97',
    950: '#000000',
  },
}
SCSS
$custom: #af4f97;
$custom-light: #c985b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f97",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 315,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57305,
    "c": 0.15227,
    "h": 338
  },
  "luminance": 0.1694
}

Semantic roles & 50–950 ramp

primary
#AF4F97
secondary
#97C3A2
accent
#CE775A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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