#AF4C8A#AF4C8A

#AF4C8A is a mid, vivid pink. Relative luminance 0.161; OKLCH L 56.4% C 0.148 H 344.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF4C8A
RGBrgb(175, 76, 138)
HSLhsl(322, 39%, 49%)
HSVhsv(322, 57%, 69%)
CMYKcmyk(0%, 56.6%, 21.1%, 31.4%)
CIE-LABlab(47.13, 47.61, -14.98)
CIE-LCHlch(47.13, 49.91, 342.53°)
OKLaboklab(56.36% 0.1424 -0.0397)
OKLCHoklch(56.36% 0.148 344.4)
XYZxyz(24.8517, 16.1200, 25.8424)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4C8A #4CAF71
analogous
#A34CAF #AF4C8A #AF4C59
triadic
#AF4C8A #8AAF4C #4C8AAF
tetradic
#AF4C8A #AFA34C #4CAF71 #4C59AF
square
#AF4C8A #AFA34C #4CAF71 #4C59AF
split-complementary
#AF4C8A #59AF4C #4CAFA3
monochromatic
#5A2747 #843968 #AF4C8A #C375A6 #D6A0C2

Accessibility & contrast

On white

4.97
#AF4C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF4C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4C8A
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4C8A#FFFFFF#000000##FFFFFF
##AF4C8A1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54658C
Deuteranopia (green-blind)
#707688
Tritanopia (blue-blind)
#B94B65
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4c8a;
/* rgb */ color: rgb(175, 76, 138);
/* oklch */ color: oklch(56.4% 0.148 344.4);
Tailwind
colors: {
  custom: {
    50: '#ca83ac',
    500: '#af4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #af4c8a;
$custom-light: #ca83ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af4c8a",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 322.424,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56355,
    "c": 0.14784,
    "h": 344.4
  },
  "luminance": 0.16118
}

Semantic roles & 50–950 ramp

primary
#AF4C8A
secondary
#94C2A6
accent
#CF8558
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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