#AF4172#AF4172

#AF4172 is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.0% C 0.151 H 355.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AF4172
RGBrgb(175, 65, 114)
HSLhsl(333, 46%, 47%)
HSVhsv(333, 63%, 69%)
CMYKcmyk(0%, 62.9%, 34.9%, 31.4%)
CIE-LABlab(44.39, 49.48, -4.51)
CIE-LCHlch(44.39, 49.69, 354.79°)
OKLaboklab(54.05% 0.151 -0.0112)
OKLCHoklch(54.05% 0.151 355.7)
XYZxyz(22.6080, 14.1119, 17.4496)
Luminance0.1411 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4172 #41AF7E
analogous
#AF41A9 #AF4172 #AF4741
triadic
#AF4172 #72AF41 #4172AF
tetradic
#AF4172 #A9AF41 #41AF7E #4741AF
square
#AF4172 #A9AF41 #41AF7E #4741AF
split-complementary
#AF4172 #41AF47 #41A9AF
monochromatic
#562038 #823055 #AF4172 #C66791 #D793B2

Accessibility & contrast

On white

5.49
#AF4172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF4172 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4172
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4172#FFFFFF#000000##FFFFFF
##AF41721.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535C73
Deuteranopia (green-blind)
#71716F
Tritanopia (blue-blind)
#BC3954
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af4172;
/* rgb */ color: rgb(175, 65, 114);
/* oklch */ color: oklch(54.0% 0.151 355.7);
Tailwind
colors: {
  custom: {
    50: '#cb7c9a',
    500: '#af4172',
    950: '#000000',
  },
}
SCSS
$custom: #af4172;
$custom-light: #cb7c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#af4172",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 114
  },
  "hsl": {
    "h": 333.273,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54046,
    "c": 0.15144,
    "h": 355.7
  },
  "luminance": 0.14109
}

Semantic roles & 50–950 ramp

primary
#AF4172
secondary
#89C2A9
accent
#D59B52
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF4172

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

Preview Lab → · Contrast checker → · Palette generator →

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