#AF4E78#AF4E78

#AF4E78 is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.0% C 0.135 H 355.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF4E78
RGBrgb(175, 78, 120)
HSLhsl(334, 38%, 50%)
HSVhsv(334, 55%, 69%)
CMYKcmyk(0%, 55.4%, 31.4%, 31.4%)
CIE-LABlab(46.87, 44.13, -4.50)
CIE-LCHlch(46.87, 44.36, 354.18°)
OKLaboklab(55.95% 0.1341 -0.0113)
OKLCHoklch(55.95% 0.135 355.2)
XYZxyz(23.7948, 15.9211, 19.5856)
Luminance0.1592 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E78 #4EAF85
analogous
#AF4EA9 #AF4E78 #AF554E
triadic
#AF4E78 #78AF4E #4E78AF
tetradic
#AF4E78 #A9AF4E #4EAF85 #554EAF
square
#AF4E78 #A9AF4E #4EAF85 #554EAF
split-complementary
#AF4E78 #4EAF55 #4EA9AF
monochromatic
#5A283E #853B5B #AF4E78 #C37898 #D6A2B8

Accessibility & contrast

On white

5.02
#AF4E78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF4E78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E78
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E78#FFFFFF#000000##FFFFFF
##AF4E781.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6479
Deuteranopia (green-blind)
#767676
Tritanopia (blue-blind)
#BB485E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4e78;
/* rgb */ color: rgb(175, 78, 120);
/* oklch */ color: oklch(56.0% 0.135 355.2);
Tailwind
colors: {
  custom: {
    50: '#ca839e',
    500: '#af4e78',
    950: '#000000',
  },
}
SCSS
$custom: #af4e78;
$custom-light: #ca839e;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e78",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 120
  },
  "hsl": {
    "h": 334.021,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55954,
    "c": 0.13453,
    "h": 355.2
  },
  "luminance": 0.15919
}

Semantic roles & 50–950 ramp

primary
#AF4E78
secondary
#96C3AF
accent
#CE9C5A
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF4E78

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

Preview Lab → · Contrast checker → · Palette generator →

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