#AF407B#AF407B

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

Color values

HEX#AF407B
RGBrgb(175, 64, 123)
HSLhsl(328, 46%, 47%)
HSVhsv(328, 63%, 69%)
CMYKcmyk(0%, 63.4%, 29.7%, 31.4%)
CIE-LABlab(44.54, 51.04, -9.81)
CIE-LCHlch(44.54, 51.98, 349.12°)
OKLaboklab(54.25% 0.1551 -0.0255)
OKLCHoklch(54.25% 0.157 350.7)
XYZxyz(23.0888, 14.2132, 20.2625)
Luminance0.1421 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF407B #40AF74
analogous
#AC40AF #AF407B #AF4044
triadic
#AF407B #7BAF40 #407BAF
tetradic
#AF407B #AFAC40 #40AF74 #4044AF
square
#AF407B #AFAC40 #40AF74 #4044AF
split-complementary
#AF407B #44AF40 #40AFAC
monochromatic
#551F3C #82305C #AF407B #C76599 #D792B7

Accessibility & contrast

On white

5.47
#AF407B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF407B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF407B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF407B#FFFFFF#000000##FFFFFF
##AF407B1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af407b;
/* rgb */ color: rgb(175, 64, 123);
/* oklch */ color: oklch(54.3% 0.157 350.7);
Tailwind
colors: {
  custom: {
    50: '#ca7ba1',
    500: '#af407b',
    950: '#000000',
  },
}
SCSS
$custom: #af407b;
$custom-light: #ca7ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#af407b",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 328.108,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54253,
    "c": 0.15722,
    "h": 350.7
  },
  "luminance": 0.14211
}

Semantic roles & 50–950 ramp

primary
#AF407B
secondary
#88C3A4
accent
#D69052
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF407B

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

Preview Lab → · Contrast checker → · Palette generator →

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