#AF408B#AF408B

#AF408B is a mid, vivid pink. Relative luminance 0.146; OKLCH L 54.9% C 0.167 H 342.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF408B
RGBrgb(175, 64, 139)
HSLhsl(319, 46%, 47%)
HSVhsv(319, 63%, 69%)
CMYKcmyk(0%, 63.4%, 20.6%, 31.4%)
CIE-LABlab(45.15, 53.22, -18.61)
CIE-LCHlch(45.15, 56.39, 340.72°)
OKLaboklab(54.9% 0.1592 -0.0497)
OKLCHoklch(54.9% 0.167 342.6)
XYZxyz(24.1735, 14.6471, 25.9751)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF408B #40AF64
analogous
#9C40AF #AF408B #AF4054
triadic
#AF408B #8BAF40 #408BAF
tetradic
#AF408B #AF9C40 #40AF64 #4054AF
square
#AF408B #AF9C40 #40AF64 #4054AF
split-complementary
#AF408B #54AF40 #40AF9C
monochromatic
#551F44 #823067 #AF408B #C765A7 #D792C1

Accessibility & contrast

On white

5.34
#AF408B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF408B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF408B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF408B#FFFFFF#000000##FFFFFF
##AF408B1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495F8D
Deuteranopia (green-blind)
#6A7288
Tritanopia (blue-blind)
#BA4160
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af408b;
/* rgb */ color: rgb(175, 64, 139);
/* oklch */ color: oklch(54.9% 0.167 342.6);
Tailwind
colors: {
  custom: {
    50: '#ca7cad',
    500: '#af408b',
    950: '#000000',
  },
}
SCSS
$custom: #af408b;
$custom-light: #ca7cad;
$custom-dark: #000000;
JSON
{
  "hex": "#af408b",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 319.459,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54902,
    "c": 0.16679,
    "h": 342.6
  },
  "luminance": 0.14645
}

Semantic roles & 50–950 ramp

primary
#AF408B
secondary
#88C39B
accent
#D67D52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF408B

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

Preview Lab → · Contrast checker → · Palette generator →

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