#AF409B#AF409B

#AF409B is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.6% C 0.178 H 335.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF409B
RGBrgb(175, 64, 155)
HSLhsl(311, 46%, 47%)
HSVhsv(311, 63%, 69%)
CMYKcmyk(0%, 63.4%, 11.4%, 31.4%)
CIE-LABlab(45.84, 55.64, -27.16)
CIE-LCHlch(45.84, 61.92, 333.98°)
OKLaboklab(55.64% 0.1621 -0.0739)
OKLCHoklch(55.64% 0.178 335.5)
XYZxyz(25.4292, 15.1494, 32.5888)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF409B #40AF54
analogous
#8C40AF #AF409B #AF4063
triadic
#AF409B #9BAF40 #409BAF
tetradic
#AF409B #AF8C40 #40AF54 #4063AF
square
#AF409B #AF8C40 #40AF54 #4063AF
split-complementary
#AF409B #63AF40 #40AF8C
monochromatic
#551F4C #823073 #AF409B #C765B5 #D792CB

Accessibility & contrast

On white

5.21
#AF409B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF409B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF409B
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF409B#FFFFFF#000000##FFFFFF
##AF409B1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41629E
Deuteranopia (green-blind)
#647398
Tritanopia (blue-blind)
#B74768
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af409b;
/* rgb */ color: rgb(175, 64, 155);
/* oklch */ color: oklch(55.6% 0.178 335.5);
Tailwind
colors: {
  custom: {
    50: '#ca7cb8',
    500: '#af409b',
    950: '#000000',
  },
}
SCSS
$custom: #af409b;
$custom-light: #ca7cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#af409b",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 155
  },
  "hsl": {
    "h": 310.811,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55635,
    "c": 0.17818,
    "h": 335.5
  },
  "luminance": 0.15147
}

Semantic roles & 50–950 ramp

primary
#AF409B
secondary
#88C393
accent
#D66A52
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF409B

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

Preview Lab → · Contrast checker → · Palette generator →

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