#AF4E97#AF4E97

#AF4E97 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.2% C 0.154 H 338.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF4E97
RGBrgb(175, 78, 151)
HSLhsl(315, 38%, 50%)
HSVhsv(315, 55%, 69%)
CMYKcmyk(0%, 55.4%, 13.7%, 31.4%)
CIE-LABlab(48.01, 48.65, -21.42)
CIE-LCHlch(48.01, 53.15, 336.23°)
OKLaboklab(57.17% 0.1426 -0.0577)
OKLCHoklch(57.17% 0.154 338)
XYZxyz(25.9898, 16.7991, 31.1459)
Luminance0.1680 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E97 #4EAF66
analogous
#964EAF #AF4E97 #AF4E67
triadic
#AF4E97 #97AF4E #4E97AF
tetradic
#AF4E97 #AF964E #4EAF66 #4E67AF
square
#AF4E97 #AF964E #4EAF66 #4E67AF
split-complementary
#AF4E97 #67AF4E #4EAF96
monochromatic
#5A284E #853B72 #AF4E97 #C378B0 #D6A2C9

Accessibility & contrast

On white

4.82
#AF4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AF4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E97
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E97#FFFFFF#000000##FFFFFF
##AF4E971.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#516899
Deuteranopia (green-blind)
#6D7794
Tritanopia (blue-blind)
#B8516C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4e97;
/* rgb */ color: rgb(175, 78, 151);
/* oklch */ color: oklch(57.2% 0.154 338.0);
Tailwind
colors: {
  custom: {
    50: '#c984b5',
    500: '#af4e97',
    950: '#000000',
  },
}
SCSS
$custom: #af4e97;
$custom-light: #c984b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e97",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 314.845,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57171,
    "c": 0.15389,
    "h": 338
  },
  "luminance": 0.16797
}

Semantic roles & 50–950 ramp

primary
#AF4E97
secondary
#96C3A1
accent
#CE765A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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