#AF408E#AF408E

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

Color values

HEX#AF408E
RGBrgb(175, 64, 142)
HSLhsl(318, 46%, 47%)
HSVhsv(318, 63%, 69%)
CMYKcmyk(0%, 63.4%, 18.9%, 31.4%)
CIE-LABlab(45.27, 53.66, -20.24)
CIE-LCHlch(45.27, 57.35, 339.34°)
OKLaboklab(55.03% 0.1598 -0.0543)
OKLCHoklch(55.03% 0.169 341.2)
XYZxyz(24.3957, 14.7359, 27.1454)
Luminance0.1473 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF408E #40AF61
analogous
#9940AF #AF408E #AF4056
triadic
#AF408E #8EAF40 #408EAF
tetradic
#AF408E #AF9940 #40AF61 #4056AF
square
#AF408E #AF9940 #40AF61 #4056AF
split-complementary
#AF408E #56AF40 #40AF99
monochromatic
#551F45 #82306A #AF408E #C765AA #D792C3

Accessibility & contrast

On white

5.32
#AF408E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF408E
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF408E#FFFFFF#000000##FFFFFF
##AF408E1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476090
Deuteranopia (green-blind)
#69728B
Tritanopia (blue-blind)
#B94261
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af408e;
/* rgb */ color: rgb(175, 64, 142);
/* oklch */ color: oklch(55.0% 0.169 341.2);
Tailwind
colors: {
  custom: {
    50: '#ca7caf',
    500: '#af408e',
    950: '#000000',
  },
}
SCSS
$custom: #af408e;
$custom-light: #ca7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#af408e",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 317.838,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55033,
    "c": 0.1688,
    "h": 341.2
  },
  "luminance": 0.14734
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF408E

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

Preview Lab → · Contrast checker → · Palette generator →

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