#AF5282#AF5282

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

Color values

HEX#AF5282
RGBrgb(175, 82, 130)
HSLhsl(329, 37%, 50%)
HSVhsv(329, 53%, 69%)
CMYKcmyk(0%, 53.1%, 25.7%, 31.4%)
CIE-LABlab(47.96, 43.50, -8.92)
CIE-LCHlch(47.96, 44.41, 348.41°)
OKLaboklab(56.88% 0.1312 -0.0232)
OKLCHoklch(56.88% 0.133 350)
XYZxyz(24.7266, 16.7624, 23.0480)
Luminance0.1676 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5282 #52AF7F
analogous
#AD52AF #AF5282 #AF5253
triadic
#AF5282 #82AF52 #5282AF
tetradic
#AF5282 #AFAD52 #52AF7F #5253AF
square
#AF5282 #AFAD52 #52AF7F #5253AF
split-complementary
#AF5282 #53AF52 #52AFAD
monochromatic
#5C2B44 #863E63 #AF5282 #C27CA0 #D6A6BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5282#FFFFFF#000000##FFFFFF
##AF52821.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)
#5D6884
Deuteranopia (green-blind)
#757880
Tritanopia (blue-blind)
#BA4F64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af5282;
/* rgb */ color: rgb(175, 82, 130);
/* oklch */ color: oklch(56.9% 0.133 350.0);
Tailwind
colors: {
  custom: {
    50: '#c986a6',
    500: '#af5282',
    950: '#000000',
  },
}
SCSS
$custom: #af5282;
$custom-light: #c986a6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5282",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 130
  },
  "hsl": {
    "h": 329.032,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56876,
    "c": 0.13321,
    "h": 350
  },
  "luminance": 0.1676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5282

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

Preview Lab → · Contrast checker → · Palette generator →

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