#AF408F#AF408F

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

Color values

HEX#AF408F
RGBrgb(175, 64, 143)
HSLhsl(317, 46%, 47%)
HSVhsv(317, 63%, 69%)
CMYKcmyk(0%, 63.4%, 18.3%, 31.4%)
CIE-LABlab(45.31, 53.81, -20.78)
CIE-LCHlch(45.31, 57.68, 338.89°)
OKLaboklab(55.08% 0.16 -0.0558)
OKLCHoklch(55.08% 0.169 340.8)
XYZxyz(24.4711, 14.7661, 27.5426)
Luminance0.1476 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF408F #40AF60
analogous
#9840AF #AF408F #AF4058
triadic
#AF408F #8FAF40 #408FAF
tetradic
#AF408F #AF9840 #40AF60 #4058AF
square
#AF408F #AF9840 #40AF60 #4058AF
split-complementary
#AF408F #58AF40 #40AF98
monochromatic
#551F46 #82306A #AF408F #C765AB #D792C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF408F#FFFFFF#000000##FFFFFF
##AF408F1.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)
#476091
Deuteranopia (green-blind)
#68728C
Tritanopia (blue-blind)
#B94262
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af408f;
/* rgb */ color: rgb(175, 64, 143);
/* oklch */ color: oklch(55.1% 0.169 340.8);
Tailwind
colors: {
  custom: {
    50: '#ca7cb0',
    500: '#af408f',
    950: '#000000',
  },
}
SCSS
$custom: #af408f;
$custom-light: #ca7cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#af408f",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 317.297,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55078,
    "c": 0.16949,
    "h": 340.8
  },
  "luminance": 0.14764
}

Semantic roles & 50–950 ramp

primary
#AF408F
secondary
#88C399
accent
#D67852
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF408F

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

Preview Lab → · Contrast checker → · Palette generator →

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