#AF4C8F#AF4C8F

#AF4C8F is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.6% C 0.151 H 341.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF4C8F
RGBrgb(175, 76, 143)
HSLhsl(319, 39%, 49%)
HSVhsv(319, 57%, 69%)
CMYKcmyk(0%, 56.6%, 18.3%, 31.4%)
CIE-LABlab(47.32, 48.36, -17.69)
CIE-LCHlch(47.32, 51.49, 339.91°)
OKLaboklab(56.56% 0.1437 -0.0473)
OKLCHoklch(56.56% 0.151 341.8)
XYZxyz(25.2221, 16.2681, 27.7929)
Luminance0.1627 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4C8F #4CAF6C
analogous
#9E4CAF #AF4C8F #AF4C5E
triadic
#AF4C8F #8FAF4C #4C8FAF
tetradic
#AF4C8F #AF9E4C #4CAF6C #4C5EAF
square
#AF4C8F #AF9E4C #4CAF6C #4C5EAF
split-complementary
#AF4C8F #5EAF4C #4CAF9E
monochromatic
#5A2749 #84396C #AF4C8F #C375AA #D6A0C4

Accessibility & contrast

On white

4.94
#AF4C8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF4C8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4C8F
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4C8F#FFFFFF#000000##FFFFFF
##AF4C8F1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526691
Deuteranopia (green-blind)
#6E768C
Tritanopia (blue-blind)
#B94D67
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4c8f;
/* rgb */ color: rgb(175, 76, 143);
/* oklch */ color: oklch(56.6% 0.151 341.8);
Tailwind
colors: {
  custom: {
    50: '#c983b0',
    500: '#af4c8f',
    950: '#000000',
  },
}
SCSS
$custom: #af4c8f;
$custom-light: #c983b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4c8f",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 319.394,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56561,
    "c": 0.15124,
    "h": 341.8
  },
  "luminance": 0.16266
}

Semantic roles & 50–950 ramp

primary
#AF4C8F
secondary
#94C2A3
accent
#CF7F58
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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