#AF4A87#AF4A87

#AF4A87 is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.0% C 0.149 H 345.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF4A87
RGBrgb(175, 74, 135)
HSLhsl(324, 41%, 49%)
HSVhsv(324, 58%, 69%)
CMYKcmyk(0%, 57.7%, 22.9%, 31.4%)
CIE-LABlab(46.66, 48.12, -13.89)
CIE-LCHlch(46.66, 50.09, 343.90°)
OKLaboklab(55.97% 0.1445 -0.0367)
OKLCHoklch(55.97% 0.149 345.7)
XYZxyz(24.5019, 15.7630, 24.6691)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4A87 #4AAF72
analogous
#A54AAF #AF4A87 #AF4A55
triadic
#AF4A87 #87AF4A #4A87AF
tetradic
#AF4A87 #AFA54A #4AAF72 #4A55AF
square
#AF4A87 #AFA54A #4AAF72 #4A55AF
split-complementary
#AF4A87 #55AF4A #4AAFA5
monochromatic
#592645 #843866 #AF4A87 #C473A4 #D69EC0

Accessibility & contrast

On white

5.06
#AF4A87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AF4A87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4A87
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4A87#FFFFFF#000000##FFFFFF
##AF4A871.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546489
Deuteranopia (green-blind)
#707584
Tritanopia (blue-blind)
#BA4962
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4a87;
/* rgb */ color: rgb(175, 74, 135);
/* oklch */ color: oklch(56.0% 0.149 345.7);
Tailwind
colors: {
  custom: {
    50: '#ca81aa',
    500: '#af4a87',
    950: '#000000',
  },
}
SCSS
$custom: #af4a87;
$custom-light: #ca81aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af4a87",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 135
  },
  "hsl": {
    "h": 323.762,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55969,
    "c": 0.14908,
    "h": 345.7
  },
  "luminance": 0.15761
}

Semantic roles & 50–950 ramp

primary
#AF4A87
secondary
#92C2A5
accent
#D08757
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4A87

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

Preview Lab → · Contrast checker → · Palette generator →

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