#AF4787#AF4787

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

Color values

HEX#AF4787
RGBrgb(175, 71, 135)
HSLhsl(323, 42%, 48%)
HSVhsv(323, 59%, 69%)
CMYKcmyk(0%, 59.4%, 22.9%, 31.4%)
CIE-LABlab(46.14, 49.53, -14.68)
CIE-LCHlch(46.14, 51.66, 343.49°)
OKLaboklab(55.58% 0.1488 -0.0389)
OKLCHoklch(55.58% 0.154 345.4)
XYZxyz(24.3064, 15.3719, 24.6039)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4787 #47AF6F
analogous
#A347AF #AF4787 #AF4753
triadic
#AF4787 #87AF47 #4787AF
tetradic
#AF4787 #AFA347 #47AF6F #4753AF
square
#AF4787 #AFA347 #47AF6F #4753AF
split-complementary
#AF4787 #53AF47 #47AFA3
monochromatic
#582444 #833565 #AF4787 #C46FA3 #D69ABF

Accessibility & contrast

On white

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

On black

4.07
#AF4787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF4787#FFFFFF#000000##FFFFFF
##AF47871.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#516289
Deuteranopia (green-blind)
#6E7484
Tritanopia (blue-blind)
#BA4661
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af4787;
/* rgb */ color: rgb(175, 71, 135);
/* oklch */ color: oklch(55.6% 0.154 345.4);
Tailwind
colors: {
  custom: {
    50: '#ca80aa',
    500: '#af4787',
    950: '#000000',
  },
}
SCSS
$custom: #af4787;
$custom-light: #ca80aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af4787",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 323.077,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55582,
    "c": 0.15375,
    "h": 345.4
  },
  "luminance": 0.1537
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4787

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

Preview Lab → · Contrast checker → · Palette generator →

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