#AF5281#AF5281

#AF5281 is a mid, vivid pink. Relative luminance 0.167; OKLCH L 56.8% C 0.133 H 350.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF5281
RGBrgb(175, 82, 129)
HSLhsl(330, 37%, 50%)
HSVhsv(330, 53%, 69%)
CMYKcmyk(0%, 53.1%, 26.3%, 31.4%)
CIE-LABlab(47.93, 43.36, -8.37)
CIE-LCHlch(47.93, 44.16, 349.08°)
OKLaboklab(56.84% 0.1309 -0.0217)
OKLCHoklch(56.84% 0.133 350.6)
XYZxyz(24.6598, 16.7357, 22.6962)
Luminance0.1673 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5281 #52AF80
analogous
#AE52AF #AF5281 #AF5252
triadic
#AF5281 #81AF52 #5281AF
tetradic
#AF5281 #AFAE52 #52AF80 #5252AF
square
#AF5281 #AFAE52 #52AF80 #5252AF
split-complementary
#AF5281 #52AF52 #52AFAE
monochromatic
#5C2B44 #863E62 #AF5281 #C27C9F #D6A6BE

Accessibility & contrast

On white

4.83
#AF5281 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF5281 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5281
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5281#FFFFFF#000000##FFFFFF
##AF52811.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6883
Deuteranopia (green-blind)
#76787F
Tritanopia (blue-blind)
#BA4F64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af5281;
/* rgb */ color: rgb(175, 82, 129);
/* oklch */ color: oklch(56.8% 0.133 350.6);
Tailwind
colors: {
  custom: {
    50: '#c986a5',
    500: '#af5281',
    950: '#000000',
  },
}
SCSS
$custom: #af5281;
$custom-light: #c986a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5281",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 129
  },
  "hsl": {
    "h": 329.677,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5684,
    "c": 0.13265,
    "h": 350.6
  },
  "luminance": 0.16734
}

Semantic roles & 50–950 ramp

primary
#AF5281
secondary
#9AC3AE
accent
#CD935B
background
#FCF8FA
surface
#F9F0F4
border
#D2CBCE
text
#140B0F
muted
#827C7F

Preview Lab

Preview with #AF5281

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

Preview Lab → · Contrast checker → · Palette generator →

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