#AF4E87#AF4E87

#AF4E87 is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.5% C 0.143 H 346.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF4E87
RGBrgb(175, 78, 135)
HSLhsl(325, 38%, 50%)
HSVhsv(325, 55%, 69%)
CMYKcmyk(0%, 55.4%, 22.9%, 31.4%)
CIE-LABlab(47.38, 46.20, -12.79)
CIE-LCHlch(47.38, 47.94, 344.52°)
OKLaboklab(56.51% 0.1387 -0.0337)
OKLCHoklch(56.51% 0.143 346.3)
XYZxyz(24.7775, 16.3142, 24.7610)
Luminance0.1631 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4E87 #4EAF76
analogous
#A74EAF #AF4E87 #AF4E57
triadic
#AF4E87 #87AF4E #4E87AF
tetradic
#AF4E87 #AFA74E #4EAF76 #4E57AF
square
#AF4E87 #AFA74E #4EAF76 #4E57AF
split-complementary
#AF4E87 #57AF4E #4EAFA7
monochromatic
#5A2846 #853B66 #AF4E87 #C378A4 #D6A2C0

Accessibility & contrast

On white

4.93
#AF4E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AF4E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4E87
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4E87#FFFFFF#000000##FFFFFF
##AF4E871.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#576689
Deuteranopia (green-blind)
#727685
Tritanopia (blue-blind)
#BA4C64
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4e87;
/* rgb */ color: rgb(175, 78, 135);
/* oklch */ color: oklch(56.5% 0.143 346.3);
Tailwind
colors: {
  custom: {
    50: '#c984aa',
    500: '#af4e87',
    950: '#000000',
  },
}
SCSS
$custom: #af4e87;
$custom-light: #c984aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af4e87",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 324.742,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.56505,
    "c": 0.14271,
    "h": 346.3
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#AF4E87
secondary
#96C3A9
accent
#CE8A5A
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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