#AF418D#AF418D

#AF418D is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.1% C 0.167 H 341.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF418D
RGBrgb(175, 65, 141)
HSLhsl(319, 46%, 47%)
HSVhsv(319, 63%, 69%)
CMYKcmyk(0%, 62.9%, 19.4%, 31.4%)
CIE-LABlab(45.39, 53.08, -19.46)
CIE-LCHlch(45.39, 56.54, 339.87°)
OKLaboklab(55.11% 0.1583 -0.0521)
OKLCHoklch(55.11% 0.167 341.8)
XYZxyz(24.3778, 14.8198, 26.7708)
Luminance0.1482 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF418D #41AF63
analogous
#9A41AF #AF418D #AF4156
triadic
#AF418D #8DAF41 #418DAF
tetradic
#AF418D #AF9A41 #41AF63 #4156AF
square
#AF418D #AF9A41 #41AF63 #4156AF
split-complementary
#AF418D #56AF41 #41AF9A
monochromatic
#562045 #823069 #AF418D #C667A9 #D793C2

Accessibility & contrast

On white

5.30
#AF418D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AF418D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF418D
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF418D#FFFFFF#000000##FFFFFF
##AF418D1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49608F
Deuteranopia (green-blind)
#69728A
Tritanopia (blue-blind)
#B94261
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af418d;
/* rgb */ color: rgb(175, 65, 141);
/* oklch */ color: oklch(55.1% 0.167 341.8);
Tailwind
colors: {
  custom: {
    50: '#ca7cae',
    500: '#af418d',
    950: '#000000',
  },
}
SCSS
$custom: #af418d;
$custom-light: #ca7cae;
$custom-dark: #000000;
JSON
{
  "hex": "#af418d",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 318.545,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55105,
    "c": 0.16668,
    "h": 341.8
  },
  "luminance": 0.14818
}

Semantic roles & 50–950 ramp

primary
#AF418D
secondary
#89C29B
accent
#D57B52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF418D

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

Preview Lab → · Contrast checker → · Palette generator →

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