#AF418F#AF418F

#AF418F is a mid, vivid pink. Relative luminance 0.149; OKLCH L 55.2% C 0.168 H 340.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF418F
RGBrgb(175, 65, 143)
HSLhsl(317, 46%, 47%)
HSVhsv(317, 63%, 69%)
CMYKcmyk(0%, 62.9%, 18.3%, 31.4%)
CIE-LABlab(45.47, 53.38, -20.53)
CIE-LCHlch(45.47, 57.19, 338.96°)
OKLaboklab(55.19% 0.1587 -0.0551)
OKLCHoklch(55.19% 0.168 340.8)
XYZxyz(24.5280, 14.8799, 27.5616)
Luminance0.1488 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF418F #41AF61
analogous
#9841AF #AF418F #AF4158
triadic
#AF418F #8FAF41 #418FAF
tetradic
#AF418F #AF9841 #41AF61 #4158AF
square
#AF418F #AF9841 #41AF61 #4158AF
split-complementary
#AF418F #58AF41 #41AF98
monochromatic
#562046 #82306B #AF418F #C667AB #D793C3

Accessibility & contrast

On white

5.28
#AF418F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF418F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF418F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF418F#FFFFFF#000000##FFFFFF
##AF418F1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486091
Deuteranopia (green-blind)
#69728C
Tritanopia (blue-blind)
#B94362
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af418f;
/* rgb */ color: rgb(175, 65, 143);
/* oklch */ color: oklch(55.2% 0.168 340.8);
Tailwind
colors: {
  custom: {
    50: '#ca7cb0',
    500: '#af418f',
    950: '#000000',
  },
}
SCSS
$custom: #af418f;
$custom-light: #ca7cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#af418f",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 317.455,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55193,
    "c": 0.16804,
    "h": 340.8
  },
  "luminance": 0.14878
}

Semantic roles & 50–950 ramp

primary
#AF418F
secondary
#89C29A
accent
#D57852
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF418F

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

Preview Lab → · Contrast checker → · Palette generator →

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