#AF408D#AF408D

#AF408D is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.0% C 0.168 H 341.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AF408D
RGBrgb(175, 64, 141)
HSLhsl(318, 46%, 47%)
HSVhsv(318, 63%, 69%)
CMYKcmyk(0%, 63.4%, 19.4%, 31.4%)
CIE-LABlab(45.23, 53.51, -19.70)
CIE-LCHlch(45.23, 57.02, 339.79°)
OKLaboklab(54.99% 0.1596 -0.0528)
OKLCHoklch(54.99% 0.168 341.7)
XYZxyz(24.3209, 14.7061, 26.7518)
Luminance0.1470 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF408D #40AF62
analogous
#9A40AF #AF408D #AF4056
triadic
#AF408D #8DAF40 #408DAF
tetradic
#AF408D #AF9A40 #40AF62 #4056AF
square
#AF408D #AF9A40 #40AF62 #4056AF
split-complementary
#AF408D #56AF40 #40AF9A
monochromatic
#551F45 #823069 #AF408D #C765A9 #D792C2

Accessibility & contrast

On white

5.33
#AF408D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#AF408D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF408D
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF408D#FFFFFF#000000##FFFFFF
##AF408D1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48608F
Deuteranopia (green-blind)
#69728A
Tritanopia (blue-blind)
#B94161
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af408d;
/* rgb */ color: rgb(175, 64, 141);
/* oklch */ color: oklch(55.0% 0.168 341.7);
Tailwind
colors: {
  custom: {
    50: '#ca7cae',
    500: '#af408d',
    950: '#000000',
  },
}
SCSS
$custom: #af408d;
$custom-light: #ca7cae;
$custom-dark: #000000;
JSON
{
  "hex": "#af408d",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 318.378,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54989,
    "c": 0.16813,
    "h": 341.7
  },
  "luminance": 0.14704
}

Semantic roles & 50–950 ramp

primary
#AF408D
secondary
#88C39A
accent
#D67A52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF408D

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

Preview Lab → · Contrast checker → · Palette generator →

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