#AF5074#AF5074

#AF5074 is a mid, vivid pink. Relative luminance 0.161; OKLCH L 56.1% C 0.130 H 358.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF5074
RGBrgb(175, 80, 116)
HSLhsl(337, 37%, 50%)
HSVhsv(337, 54%, 69%)
CMYKcmyk(0%, 54.3%, 33.7%, 31.4%)
CIE-LABlab(47.12, 42.63, -1.70)
CIE-LCHlch(47.12, 42.66, 357.71°)
OKLaboklab(56.1% 0.1296 -0.0039)
OKLCHoklch(56.1% 0.13 358.3)
XYZxyz(23.7014, 16.1145, 18.3818)
Luminance0.1611 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5074 #50AF8B
analogous
#AF50A4 #AF5074 #AF5B50
triadic
#AF5074 #74AF50 #5074AF
tetradic
#AF5074 #A4AF50 #50AF8B #5B50AF
square
#AF5074 #A4AF50 #50AF8B #5B50AF
split-complementary
#AF5074 #50AF5B #50A4AF
monochromatic
#5B2A3C #853D58 #AF5074 #C27A95 #D5A4B7

Accessibility & contrast

On white

4.97
#AF5074 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF5074 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5074
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5074#FFFFFF#000000##FFFFFF
##AF50741.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F6575
Deuteranopia (green-blind)
#787672
Tritanopia (blue-blind)
#BC495D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af5074;
/* rgb */ color: rgb(175, 80, 116);
/* oklch */ color: oklch(56.1% 0.130 358.3);
Tailwind
colors: {
  custom: {
    50: '#ca859c',
    500: '#af5074',
    950: '#000000',
  },
}
SCSS
$custom: #af5074;
$custom-light: #ca859c;
$custom-dark: #000000;
JSON
{
  "hex": "#af5074",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 116
  },
  "hsl": {
    "h": 337.263,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.56103,
    "c": 0.12968,
    "h": 358.3
  },
  "luminance": 0.16112
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5074

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

Preview Lab → · Contrast checker → · Palette generator →

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