#AF4788#AF4788

#AF4788 is a mid, vivid pink. Relative luminance 0.154; OKLCH L 55.6% C 0.154 H 344.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF4788
RGBrgb(175, 71, 136)
HSLhsl(323, 42%, 48%)
HSVhsv(323, 59%, 69%)
CMYKcmyk(0%, 59.4%, 22.3%, 31.4%)
CIE-LABlab(46.18, 49.67, -15.23)
CIE-LCHlch(46.18, 51.95, 342.96°)
OKLaboklab(55.62% 0.149 -0.0404)
OKLCHoklch(55.62% 0.154 344.8)
XYZxyz(24.3771, 15.4002, 24.9765)
Luminance0.1540 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4788 #47AF6E
analogous
#A247AF #AF4788 #AF4754
triadic
#AF4788 #88AF47 #4788AF
tetradic
#AF4788 #AFA247 #47AF6E #4754AF
square
#AF4788 #AFA247 #47AF6E #4754AF
split-complementary
#AF4788 #54AF47 #47AFA2
monochromatic
#582444 #833566 #AF4788 #C46FA4 #D69AC0

Accessibility & contrast

On white

5.15
#AF4788 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF4788 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4788
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4788#FFFFFF#000000##FFFFFF
##AF47881.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50628A
Deuteranopia (green-blind)
#6E7485
Tritanopia (blue-blind)
#BA4661
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af4788;
/* rgb */ color: rgb(175, 71, 136);
/* oklch */ color: oklch(55.6% 0.154 344.8);
Tailwind
colors: {
  custom: {
    50: '#ca80aa',
    500: '#af4788',
    950: '#000000',
  },
}
SCSS
$custom: #af4788;
$custom-light: #ca80aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af4788",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 136
  },
  "hsl": {
    "h": 322.5,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55623,
    "c": 0.15439,
    "h": 344.8
  },
  "luminance": 0.15398
}

Semantic roles & 50–950 ramp

primary
#AF4788
secondary
#8FC2A3
accent
#D28456
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF4788

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

Preview Lab → · Contrast checker → · Palette generator →

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