#AF4B87#AF4B87

#AF4B87 is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.1% C 0.148 H 345.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF4B87
RGBrgb(175, 75, 135)
HSLhsl(324, 40%, 49%)
HSVhsv(324, 57%, 69%)
CMYKcmyk(0%, 57.1%, 22.9%, 31.4%)
CIE-LABlab(46.84, 47.65, -13.62)
CIE-LCHlch(46.84, 49.55, 344.05°)
OKLaboklab(56.1% 0.1431 -0.036)
OKLCHoklch(56.1% 0.148 345.9)
XYZxyz(24.5692, 15.8976, 24.6915)
Luminance0.1590 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4B87 #4BAF73
analogous
#A54BAF #AF4B87 #AF4B55
triadic
#AF4B87 #87AF4B #4B87AF
tetradic
#AF4B87 #AFA54B #4BAF73 #4B55AF
square
#AF4B87 #AFA54B #4BAF73 #4B55AF
split-complementary
#AF4B87 #55AF4B #4BAFA5
monochromatic
#592645 #843966 #AF4B87 #C374A4 #D69FC0

Accessibility & contrast

On white

5.03
#AF4B87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF4B87
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4B87#FFFFFF#000000##FFFFFF
##AF4B871.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af4b87;
/* rgb */ color: rgb(175, 75, 135);
/* oklch */ color: oklch(56.1% 0.148 345.9);
Tailwind
colors: {
  custom: {
    50: '#ca82aa',
    500: '#af4b87',
    950: '#000000',
  },
}
SCSS
$custom: #af4b87;
$custom-light: #ca82aa;
$custom-dark: #000000;
JSON
{
  "hex": "#af4b87",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 135
  },
  "hsl": {
    "h": 324,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56101,
    "c": 0.14751,
    "h": 345.9
  },
  "luminance": 0.15895
}

Semantic roles & 50–950 ramp

primary
#AF4B87
secondary
#93C2A6
accent
#D08858
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F

Preview Lab

Preview with #AF4B87

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

Preview Lab → · Contrast checker → · Palette generator →

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