#AF3174#AF3174

#AF3174 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.4% C 0.173 H 352.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF3174
RGBrgb(175, 49, 116)
HSLhsl(328, 56%, 44%)
HSVhsv(328, 72%, 69%)
CMYKcmyk(0%, 72%, 33.7%, 31.4%)
CIE-LABlab(42.11, 56.18, -9.14)
CIE-LCHlch(42.11, 56.92, 350.76°)
OKLaboklab(52.39% 0.1719 -0.0236)
OKLCHoklch(52.39% 0.174 352.2)
XYZxyz(21.9311, 12.5741, 17.7917)
Luminance0.1257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3174 #31AF6C
analogous
#AB31AF #AF3174 #AF3135
triadic
#AF3174 #74AF31 #3174AF
tetradic
#AF3174 #AFAB31 #31AF6C #3135AF
square
#AF3174 #AFAB31 #31AF6C #3135AF
split-complementary
#AF3174 #35AF31 #31AFAB
monochromatic
#4F1635 #7F2454 #AF3174 #CE4F93 #DB7FB0

Accessibility & contrast

On white

5.98
#AF3174 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF3174 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3174
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3174#FFFFFF#000000##FFFFFF
##AF31741.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465576
Deuteranopia (green-blind)
#6A6C71
Tritanopia (blue-blind)
#BC284E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af3174;
/* rgb */ color: rgb(175, 49, 116);
/* oklch */ color: oklch(52.4% 0.173 352.2);
Tailwind
colors: {
  custom: {
    50: '#cb749c',
    500: '#af3174',
    950: '#000000',
  },
}
SCSS
$custom: #af3174;
$custom-light: #cb749c;
$custom-dark: #000000;
JSON
{
  "hex": "#af3174",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 328.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52387,
    "c": 0.1735,
    "h": 352.2
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

primary
#AF3174
secondary
#78C49B
accent
#E08F48
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3174

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

Preview Lab → · Contrast checker → · Palette generator →

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