#AF418B#AF418B

#AF418B is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.0% C 0.165 H 342.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#AF418B
RGBrgb(175, 65, 139)
HSLhsl(320, 46%, 47%)
HSVhsv(320, 63%, 69%)
CMYKcmyk(0%, 62.9%, 20.6%, 31.4%)
CIE-LABlab(45.30, 52.79, -18.37)
CIE-LCHlch(45.30, 55.90, 340.81°)
OKLaboklab(55.02% 0.1579 -0.0491)
OKLCHoklch(55.02% 0.165 342.7)
XYZxyz(24.2304, 14.7609, 25.9941)
Luminance0.1476 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF418B #41AF65
analogous
#9C41AF #AF418B #AF4154
triadic
#AF418B #8BAF41 #418BAF
tetradic
#AF418B #AF9C41 #41AF65 #4154AF
square
#AF418B #AF9C41 #41AF65 #4154AF
split-complementary
#AF418B #54AF41 #41AF9C
monochromatic
#562044 #823068 #AF418B #C667A7 #D793C1

Accessibility & contrast

On white

5.31
#AF418B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#AF418B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF418B
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF418B#FFFFFF#000000##FFFFFF
##AF418B1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A608D
Deuteranopia (green-blind)
#6A7288
Tritanopia (blue-blind)
#B94260
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af418b;
/* rgb */ color: rgb(175, 65, 139);
/* oklch */ color: oklch(55.0% 0.165 342.7);
Tailwind
colors: {
  custom: {
    50: '#ca7cad',
    500: '#af418b',
    950: '#000000',
  },
}
SCSS
$custom: #af418b;
$custom-light: #ca7cad;
$custom-dark: #000000;
JSON
{
  "hex": "#af418b",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 319.636,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.55018,
    "c": 0.16534,
    "h": 342.7
  },
  "luminance": 0.14759
}

Semantic roles & 50–950 ramp

primary
#AF418B
secondary
#89C29C
accent
#D57D52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF418B

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

Preview Lab → · Contrast checker → · Palette generator →

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