#AF4C8D#AF4C8D

#AF4C8D is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.5% C 0.150 H 342.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF4C8D
RGBrgb(175, 76, 141)
HSLhsl(321, 39%, 49%)
HSVhsv(321, 57%, 69%)
CMYKcmyk(0%, 56.6%, 19.4%, 31.4%)
CIE-LABlab(47.25, 48.05, -16.61)
CIE-LCHlch(47.25, 50.84, 340.93°)
OKLaboklab(56.48% 0.1432 -0.0443)
OKLCHoklch(56.48% 0.15 342.8)
XYZxyz(25.0719, 16.2080, 27.0021)
Luminance0.1621 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4C8D #4CAF6E
analogous
#A04CAF #AF4C8D #AF4C5C
triadic
#AF4C8D #8DAF4C #4C8DAF
tetradic
#AF4C8D #AFA04C #4CAF6E #4C5CAF
square
#AF4C8D #AFA04C #4CAF6E #4C5CAF
split-complementary
#AF4C8D #5CAF4C #4CAFA0
monochromatic
#5A2748 #84396B #AF4C8D #C375A8 #D6A0C3

Accessibility & contrast

On white

4.95
#AF4C8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AF4C8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4C8D
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4C8D#FFFFFF#000000##FFFFFF
##AF4C8D1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53668F
Deuteranopia (green-blind)
#6F768A
Tritanopia (blue-blind)
#B94C66
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4c8d;
/* rgb */ color: rgb(175, 76, 141);
/* oklch */ color: oklch(56.5% 0.150 342.8);
Tailwind
colors: {
  custom: {
    50: '#c983ae',
    500: '#af4c8d',
    950: '#000000',
  },
}
SCSS
$custom: #af4c8d;
$custom-light: #c983ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af4c8d",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 320.606,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56477,
    "c": 0.14986,
    "h": 342.8
  },
  "luminance": 0.16206
}

Semantic roles & 50–950 ramp

primary
#AF4C8D
secondary
#94C2A4
accent
#CF8158
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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