#AF407E#AF407E

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

Color values

HEX#AF407E
RGBrgb(175, 64, 126)
HSLhsl(326, 46%, 47%)
HSVhsv(326, 63%, 69%)
CMYKcmyk(0%, 63.4%, 28%, 31.4%)
CIE-LABlab(44.65, 51.43, -11.48)
CIE-LCHlch(44.65, 52.70, 347.42°)
OKLaboklab(54.37% 0.156 -0.03)
OKLCHoklch(54.37% 0.159 349.1)
XYZxyz(23.2795, 14.2895, 21.2668)
Luminance0.1429 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF407E #40AF71
analogous
#A940AF #AF407E #AF4047
triadic
#AF407E #7EAF40 #407EAF
tetradic
#AF407E #AFA940 #40AF71 #4047AF
square
#AF407E #AFA940 #40AF71 #4047AF
split-complementary
#AF407E #47AF40 #40AFA9
monochromatic
#551F3D #82305E #AF407E #C7659C #D792B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF407E#FFFFFF#000000##FFFFFF
##AF407E1.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)
#4E5D80
Deuteranopia (green-blind)
#6D717B
Tritanopia (blue-blind)
#BB3C59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af407e;
/* rgb */ color: rgb(175, 64, 126);
/* oklch */ color: oklch(54.4% 0.159 349.1);
Tailwind
colors: {
  custom: {
    50: '#ca7ba3',
    500: '#af407e',
    950: '#000000',
  },
}
SCSS
$custom: #af407e;
$custom-light: #ca7ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#af407e",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 326.486,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54368,
    "c": 0.15884,
    "h": 349.1
  },
  "luminance": 0.14287
}

Semantic roles & 50–950 ramp

primary
#AF407E
secondary
#88C3A2
accent
#D68C52
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF407E

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

Preview Lab → · Contrast checker → · Palette generator →

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