#AF3177#AF3177

#AF3177 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.5% C 0.175 H 350.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AF3177
RGBrgb(175, 49, 119)
HSLhsl(327, 56%, 44%)
HSVhsv(327, 72%, 69%)
CMYKcmyk(0%, 72%, 32%, 31.4%)
CIE-LABlab(42.22, 56.54, -10.84)
CIE-LCHlch(42.22, 57.57, 349.15°)
OKLaboklab(52.5% 0.1727 -0.0282)
OKLCHoklch(52.5% 0.175 350.7)
XYZxyz(22.1085, 12.6450, 18.7256)
Luminance0.1264 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3177 #31AF69
analogous
#A831AF #AF3177 #AF3138
triadic
#AF3177 #77AF31 #3177AF
tetradic
#AF3177 #AFA831 #31AF69 #3138AF
square
#AF3177 #AFA831 #31AF69 #3138AF
split-complementary
#AF3177 #38AF31 #31AFA8
monochromatic
#4F1636 #7F2456 #AF3177 #CE4F96 #DB7FB2

Accessibility & contrast

On white

5.95
#AF3177 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF3177 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3177
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3177#FFFFFF#000000##FFFFFF
##AF31771.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455579
Deuteranopia (green-blind)
#696C74
Tritanopia (blue-blind)
#BC2950
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af3177;
/* rgb */ color: rgb(175, 49, 119);
/* oklch */ color: oklch(52.5% 0.175 350.7);
Tailwind
colors: {
  custom: {
    50: '#cb749e',
    500: '#af3177',
    950: '#000000',
  },
}
SCSS
$custom: #af3177;
$custom-light: #cb749e;
$custom-dark: #000000;
JSON
{
  "hex": "#af3177",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 119
  },
  "hsl": {
    "h": 326.667,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52503,
    "c": 0.17498,
    "h": 350.7
  },
  "luminance": 0.12642
}

Semantic roles & 50–950 ramp

primary
#AF3177
secondary
#78C49A
accent
#E08B48
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3177

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

Preview Lab → · Contrast checker → · Palette generator →

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