#AF5296#AF5296

#AF5296 is a mid, vivid pink. Relative luminance 0.174; OKLCH L 57.7% C 0.147 H 338.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF5296
RGBrgb(175, 82, 150)
HSLhsl(316, 37%, 50%)
HSVhsv(316, 53%, 69%)
CMYKcmyk(0%, 53.1%, 14.3%, 31.4%)
CIE-LABlab(48.70, 46.53, -19.76)
CIE-LCHlch(48.70, 50.55, 336.99°)
OKLaboklab(57.67% 0.1366 -0.0531)
OKLCHoklch(57.67% 0.147 338.8)
XYZxyz(26.2018, 17.3525, 30.8176)
Luminance0.1735 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5296 #52AF6B
analogous
#9952AF #AF5296 #AF5267
triadic
#AF5296 #96AF52 #5296AF
tetradic
#AF5296 #AF9952 #52AF6B #5267AF
square
#AF5296 #AF9952 #52AF6B #5267AF
split-complementary
#AF5296 #67AF52 #52AF99
monochromatic
#5C2B4F #863E73 #AF5296 #C27CAF #D6A6C9

Accessibility & contrast

On white

4.70
#AF5296 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AF5296 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5296
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5296#FFFFFF#000000##FFFFFF
##AF52961.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556B98
Deuteranopia (green-blind)
#707994
Tritanopia (blue-blind)
#B8556D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af5296;
/* rgb */ color: rgb(175, 82, 150);
/* oklch */ color: oklch(57.7% 0.147 338.8);
Tailwind
colors: {
  custom: {
    50: '#c986b5',
    500: '#af5296',
    950: '#000000',
  },
}
SCSS
$custom: #af5296;
$custom-light: #c986b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5296",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 150
  },
  "hsl": {
    "h": 316.129,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57673,
    "c": 0.1466,
    "h": 338.8
  },
  "luminance": 0.17351
}

Semantic roles & 50–950 ramp

primary
#AF5296
secondary
#9AC3A5
accent
#CD7A5B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF5296

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

Preview Lab → · Contrast checker → · Palette generator →

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