#AF4C97#AF4C97

#AF4C97 is a mid, vivid pink. Relative luminance 0.165; OKLCH L 56.9% C 0.157 H 337.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF4C97
RGBrgb(175, 76, 151)
HSLhsl(315, 39%, 49%)
HSVhsv(315, 57%, 69%)
CMYKcmyk(0%, 56.6%, 13.7%, 31.4%)
CIE-LABlab(47.65, 49.60, -21.97)
CIE-LCHlch(47.65, 54.25, 336.11°)
OKLaboklab(56.91% 0.1455 -0.0593)
OKLCHoklch(56.91% 0.157 337.8)
XYZxyz(25.8499, 16.5192, 31.0992)
Luminance0.1652 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4C97 #4CAF64
analogous
#964CAF #AF4C97 #AF4C66
triadic
#AF4C97 #97AF4C #4C97AF
tetradic
#AF4C97 #AF964C #4CAF64 #4C66AF
square
#AF4C97 #AF964C #4CAF64 #4C66AF
split-complementary
#AF4C97 #66AF4C #4CAF96
monochromatic
#5A274D #843972 #AF4C97 #C375B0 #D6A0C9

Accessibility & contrast

On white

4.88
#AF4C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AF4C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4C97
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4C97#FFFFFF#000000##FFFFFF
##AF4C971.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6799
Deuteranopia (green-blind)
#6C7794
Tritanopia (blue-blind)
#B8506B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4c97;
/* rgb */ color: rgb(175, 76, 151);
/* oklch */ color: oklch(56.9% 0.157 337.8);
Tailwind
colors: {
  custom: {
    50: '#c983b5',
    500: '#af4c97',
    950: '#000000',
  },
}
SCSS
$custom: #af4c97;
$custom-light: #c983b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4c97",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 314.545,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56907,
    "c": 0.15708,
    "h": 337.8
  },
  "luminance": 0.16517
}

Semantic roles & 50–950 ramp

primary
#AF4C97
secondary
#94C2A0
accent
#CF7558
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4C97

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

Preview Lab → · Contrast checker → · Palette generator →

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