#AF397F#AF397F

#AF397F is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.6% C 0.169 H 347.7°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF397F
RGBrgb(175, 57, 127)
HSLhsl(324, 51%, 45%)
HSVhsv(324, 67%, 69%)
CMYKcmyk(0%, 67.4%, 27.4%, 31.4%)
CIE-LABlab(43.62, 54.49, -13.65)
CIE-LCHlch(43.62, 56.17, 345.94°)
OKLaboklab(53.62% 0.1653 -0.0359)
OKLCHoklch(53.62% 0.169 347.7)
XYZxyz(22.9741, 13.5749, 21.4849)
Luminance0.1357 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF397F #39AF69
analogous
#A439AF #AF397F #AF3944
triadic
#AF397F #7FAF39 #397FAF
tetradic
#AF397F #AFA439 #39AF69 #3944AF
square
#AF397F #AFA439 #39AF69 #3944AF
split-complementary
#AF397F #44AF39 #39AFA4
monochromatic
#531B3C #812A5D #AF397F #CA5B9D #D98AB9

Accessibility & contrast

On white

5.65
#AF397F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF397F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF397F
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF397F#FFFFFF#000000##FFFFFF
##AF397F1.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485A81
Deuteranopia (green-blind)
#6A6F7C
Tritanopia (blue-blind)
#BB3557
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af397f;
/* rgb */ color: rgb(175, 57, 127);
/* oklch */ color: oklch(53.6% 0.169 347.7);
Tailwind
colors: {
  custom: {
    50: '#cb78a4',
    500: '#af397f',
    950: '#000000',
  },
}
SCSS
$custom: #af397f;
$custom-light: #cb78a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af397f",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 324.407,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53623,
    "c": 0.16915,
    "h": 347.7
  },
  "luminance": 0.13573
}

Semantic roles & 50–950 ramp

primary
#AF397F
secondary
#81C39C
accent
#DA874D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AF397F

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

Preview Lab → · Contrast checker → · Palette generator →

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