#AF407C#AF407C

#AF407C is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.3% C 0.158 H 350.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF407C
RGBrgb(175, 64, 124)
HSLhsl(328, 46%, 47%)
HSVhsv(328, 63%, 69%)
CMYKcmyk(0%, 63.4%, 29.1%, 31.4%)
CIE-LABlab(44.57, 51.17, -10.37)
CIE-LCHlch(44.57, 52.21, 348.55°)
OKLaboklab(54.29% 0.1554 -0.027)
OKLCHoklch(54.29% 0.158 350.1)
XYZxyz(23.1517, 14.2384, 20.5939)
Luminance0.1424 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF407C #40AF73
analogous
#AB40AF #AF407C #AF4044
triadic
#AF407C #7CAF40 #407CAF
tetradic
#AF407C #AFAB40 #40AF73 #4044AF
square
#AF407C #AFAB40 #40AF73 #4044AF
split-complementary
#AF407C #44AF40 #40AFAB
monochromatic
#551F3C #82305C #AF407C #C7659A #D792B7

Accessibility & contrast

On white

5.46
#AF407C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF407C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF407C
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF407C#FFFFFF#000000##FFFFFF
##AF407C1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5D7E
Deuteranopia (green-blind)
#6E7179
Tritanopia (blue-blind)
#BB3B58
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af407c;
/* rgb */ color: rgb(175, 64, 124);
/* oklch */ color: oklch(54.3% 0.158 350.1);
Tailwind
colors: {
  custom: {
    50: '#ca7ba2',
    500: '#af407c',
    950: '#000000',
  },
}
SCSS
$custom: #af407c;
$custom-light: #ca7ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#af407c",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 327.568,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54291,
    "c": 0.15775,
    "h": 350.1
  },
  "luminance": 0.14236
}

Semantic roles & 50–950 ramp

primary
#AF407C
secondary
#88C3A3
accent
#D68F52
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0F
muted
#827C7E

Preview Lab

Preview with #AF407C

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

Preview Lab → · Contrast checker → · Palette generator →

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