#AF5181#AF5181

#AF5181 is a mid, vivid pink. Relative luminance 0.166; OKLCH L 56.7% C 0.134 H 350.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF5181
RGBrgb(175, 81, 129)
HSLhsl(329, 37%, 50%)
HSVhsv(329, 54%, 69%)
CMYKcmyk(0%, 53.7%, 26.3%, 31.4%)
CIE-LABlab(47.73, 43.86, -8.65)
CIE-LCHlch(47.73, 44.71, 348.84°)
OKLaboklab(56.7% 0.1324 -0.0225)
OKLCHoklch(56.7% 0.134 350.4)
XYZxyz(24.5849, 16.5860, 22.6712)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5181 #51AF7F
analogous
#AE51AF #AF5181 #AF5152
triadic
#AF5181 #81AF51 #5181AF
tetradic
#AF5181 #AFAE51 #51AF7F #5152AF
square
#AF5181 #AFAE51 #51AF7F #5152AF
split-complementary
#AF5181 #52AF51 #51AFAE
monochromatic
#5C2A43 #853D62 #AF5181 #C27B9F #D6A5BE

Accessibility & contrast

On white

4.86
#AF5181 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF5181 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5181
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5181#FFFFFF#000000##FFFFFF
##AF51811.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6783
Deuteranopia (green-blind)
#75777F
Tritanopia (blue-blind)
#BA4E63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af5181;
/* rgb */ color: rgb(175, 81, 129);
/* oklch */ color: oklch(56.7% 0.134 350.4);
Tailwind
colors: {
  custom: {
    50: '#c985a5',
    500: '#af5181',
    950: '#000000',
  },
}
SCSS
$custom: #af5181;
$custom-light: #c985a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5181",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 129
  },
  "hsl": {
    "h": 329.362,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56697,
    "c": 0.13428,
    "h": 350.4
  },
  "luminance": 0.16584
}

Semantic roles & 50–950 ramp

primary
#AF5181
secondary
#99C3AD
accent
#CD935B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF5181

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

Preview Lab → · Contrast checker → · Palette generator →

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