#AF4E8C#AF4E8C

#AF4E8C is a mid, vivid pink. Relative luminance 0.165; OKLCH L 56.7% C 0.146 H 343.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF4E8C
RGBrgb(175, 78, 140)
HSLhsl(322, 38%, 50%)
HSVhsv(322, 55%, 69%)
CMYKcmyk(0%, 55.4%, 20%, 31.4%)
CIE-LABlab(47.57, 46.94, -15.52)
CIE-LCHlch(47.57, 49.44, 341.71°)
OKLaboklab(56.71% 0.14 -0.0412)
OKLCHoklch(56.71% 0.146 343.6)
XYZxyz(25.1378, 16.4583, 26.6587)
Luminance0.1646 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E8C #4EAF71
analogous
#A14EAF #AF4E8C #AF4E5C
triadic
#AF4E8C #8CAF4E #4E8CAF
tetradic
#AF4E8C #AFA14E #4EAF71 #4E5CAF
square
#AF4E8C #AFA14E #4EAF71 #4E5CAF
split-complementary
#AF4E8C #5CAF4E #4EAFA1
monochromatic
#5A2848 #853B6A #AF4E8C #C378A8 #D6A2C3

Accessibility & contrast

On white

4.89
#AF4E8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF4E8C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E8C
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E8C#FFFFFF#000000##FFFFFF
##AF4E8C1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55678E
Deuteranopia (green-blind)
#70778A
Tritanopia (blue-blind)
#B94E67
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af4e8c;
/* rgb */ color: rgb(175, 78, 140);
/* oklch */ color: oklch(56.7% 0.146 343.6);
Tailwind
colors: {
  custom: {
    50: '#c984ad',
    500: '#af4e8c',
    950: '#000000',
  },
}
SCSS
$custom: #af4e8c;
$custom-light: #c984ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e8c",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 140
  },
  "hsl": {
    "h": 321.649,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56705,
    "c": 0.14596,
    "h": 343.6
  },
  "luminance": 0.16456
}

Semantic roles & 50–950 ramp

primary
#AF4E8C
secondary
#96C3A6
accent
#CE845A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF4E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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