#AF407F#AF407F

#AF407F is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.4% C 0.159 H 348.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF407F
RGBrgb(175, 64, 127)
HSLhsl(326, 46%, 47%)
HSVhsv(326, 63%, 69%)
CMYKcmyk(0%, 63.4%, 27.4%, 31.4%)
CIE-LABlab(44.68, 51.56, -12.03)
CIE-LCHlch(44.68, 52.95, 346.86°)
OKLaboklab(54.41% 0.1563 -0.0315)
OKLCHoklch(54.41% 0.159 348.6)
XYZxyz(23.3443, 14.3154, 21.6083)
Luminance0.1431 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF407F #40AF70
analogous
#A840AF #AF407F #AF4047
triadic
#AF407F #7FAF40 #407FAF
tetradic
#AF407F #AFA840 #40AF70 #4047AF
square
#AF407F #AFA840 #40AF70 #4047AF
split-complementary
#AF407F #47AF40 #40AFA8
monochromatic
#551F3E #82305E #AF407F #C7659D #D792B9

Accessibility & contrast

On white

5.44
#AF407F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF407F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF407F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF407F#FFFFFF#000000##FFFFFF
##AF407F1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5D81
Deuteranopia (green-blind)
#6D717C
Tritanopia (blue-blind)
#BB3C5A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af407f;
/* rgb */ color: rgb(175, 64, 127);
/* oklch */ color: oklch(54.4% 0.159 348.6);
Tailwind
colors: {
  custom: {
    50: '#ca7ca4',
    500: '#af407f',
    950: '#000000',
  },
}
SCSS
$custom: #af407f;
$custom-light: #ca7ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#af407f",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 325.946,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54407,
    "c": 0.1594,
    "h": 348.6
  },
  "luminance": 0.14313
}

Semantic roles & 50–950 ramp

primary
#AF407F
secondary
#88C3A1
accent
#D68B52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF407F

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

Preview Lab → · Contrast checker → · Palette generator →

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