#AF408A#AF408A

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

Color values

HEX#AF408A
RGBrgb(175, 64, 138)
HSLhsl(320, 46%, 47%)
HSVhsv(320, 63%, 69%)
CMYKcmyk(0%, 63.4%, 21.1%, 31.4%)
CIE-LABlab(45.11, 53.08, -18.07)
CIE-LCHlch(45.11, 56.07, 341.20°)
OKLaboklab(54.86% 0.159 -0.0482)
OKLCHoklch(54.86% 0.166 343.1)
XYZxyz(24.1007, 14.6180, 25.5921)
Luminance0.1462 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF408A #40AF65
analogous
#9D40AF #AF408A #AF4053
triadic
#AF408A #8AAF40 #408AAF
tetradic
#AF408A #AF9D40 #40AF65 #4053AF
square
#AF408A #AF9D40 #40AF65 #4053AF
split-complementary
#AF408A #53AF40 #40AF9D
monochromatic
#551F43 #823067 #AF408A #C765A6 #D792C0

Accessibility & contrast

On white

5.35
#AF408A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AF408A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF408A
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF408A#FFFFFF#000000##FFFFFF
##AF408A1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495F8C
Deuteranopia (green-blind)
#6A7187
Tritanopia (blue-blind)
#BA405F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af408a;
/* rgb */ color: rgb(175, 64, 138);
/* oklch */ color: oklch(54.9% 0.166 343.1);
Tailwind
colors: {
  custom: {
    50: '#ca7cac',
    500: '#af408a',
    950: '#000000',
  },
}
SCSS
$custom: #af408a;
$custom-light: #ca7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#af408a",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 320,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54859,
    "c": 0.16613,
    "h": 343.1
  },
  "luminance": 0.14616
}

Semantic roles & 50–950 ramp

primary
#AF408A
secondary
#88C39C
accent
#D67E52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF408A

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

Preview Lab → · Contrast checker → · Palette generator →

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