#AF407D#AF407D

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

Color values

HEX#AF407D
RGBrgb(175, 64, 125)
HSLhsl(327, 46%, 47%)
HSVhsv(327, 63%, 69%)
CMYKcmyk(0%, 63.4%, 28.6%, 31.4%)
CIE-LABlab(44.61, 51.30, -10.92)
CIE-LCHlch(44.61, 52.45, 347.98°)
OKLaboklab(54.33% 0.1557 -0.0285)
OKLCHoklch(54.33% 0.158 349.6)
XYZxyz(23.2153, 14.2638, 20.9286)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF407D #40AF72
analogous
#AA40AF #AF407D #AF4045
triadic
#AF407D #7DAF40 #407DAF
tetradic
#AF407D #AFAA40 #40AF72 #4045AF
square
#AF407D #AFAA40 #40AF72 #4045AF
split-complementary
#AF407D #45AF40 #40AFAA
monochromatic
#551F3D #82305D #AF407D #C7659B #D792B8

Accessibility & contrast

On white

5.45
#AF407D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF407D
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF407D#FFFFFF#000000##FFFFFF
##AF407D1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5D7F
Deuteranopia (green-blind)
#6E717A
Tritanopia (blue-blind)
#BB3B59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af407d;
/* rgb */ color: rgb(175, 64, 125);
/* oklch */ color: oklch(54.3% 0.158 349.6);
Tailwind
colors: {
  custom: {
    50: '#ca7ba2',
    500: '#af407d',
    950: '#000000',
  },
}
SCSS
$custom: #af407d;
$custom-light: #ca7ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#af407d",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 327.027,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54329,
    "c": 0.1583,
    "h": 349.6
  },
  "luminance": 0.14261
}

Semantic roles & 50–950 ramp

primary
#AF407D
secondary
#88C3A3
accent
#D68D52
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF407D

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

Preview Lab → · Contrast checker → · Palette generator →

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