#AF5174#AF5174

#AF5174 is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.2% C 0.128 H 358.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF5174
RGBrgb(175, 81, 116)
HSLhsl(338, 37%, 50%)
HSVhsv(338, 54%, 69%)
CMYKcmyk(0%, 53.7%, 33.7%, 31.4%)
CIE-LABlab(47.32, 42.12, -1.42)
CIE-LCHlch(47.32, 42.15, 358.07°)
OKLaboklab(56.25% 0.1281 -0.0032)
OKLCHoklch(56.25% 0.128 358.6)
XYZxyz(23.7751, 16.2621, 18.4064)
Luminance0.1626 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5174 #51AF8C
analogous
#AF51A3 #AF5174 #AF5D51
triadic
#AF5174 #74AF51 #5174AF
tetradic
#AF5174 #A3AF51 #51AF8C #5D51AF
square
#AF5174 #A3AF51 #51AF8C #5D51AF
split-complementary
#AF5174 #51AF5D #51A3AF
monochromatic
#5C2A3C #853D58 #AF5174 #C27B95 #D6A5B7

Accessibility & contrast

On white

4.94
#AF5174 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF5174 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5174
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5174#FFFFFF#000000##FFFFFF
##AF51741.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#606575
Deuteranopia (green-blind)
#787772
Tritanopia (blue-blind)
#BC4A5E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af5174;
/* rgb */ color: rgb(175, 81, 116);
/* oklch */ color: oklch(56.2% 0.128 358.6);
Tailwind
colors: {
  custom: {
    50: '#ca859c',
    500: '#af5174',
    950: '#000000',
  },
}
SCSS
$custom: #af5174;
$custom-light: #ca859c;
$custom-dark: #000000;
JSON
{
  "hex": "#af5174",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 116
  },
  "hsl": {
    "h": 337.66,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56247,
    "c": 0.12811,
    "h": 358.6
  },
  "luminance": 0.1626
}

Semantic roles & 50–950 ramp

primary
#AF5174
secondary
#99C3B3
accent
#CDA25B
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E

Preview Lab

Preview with #AF5174

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

Preview Lab → · Contrast checker → · Palette generator →

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