#AF397B#AF397B

#AF397B is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.5% C 0.167 H 349.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF397B
RGBrgb(175, 57, 123)
HSLhsl(326, 51%, 45%)
HSVhsv(326, 67%, 69%)
CMYKcmyk(0%, 67.4%, 29.7%, 31.4%)
CIE-LABlab(43.47, 53.98, -11.42)
CIE-LCHlch(43.47, 55.17, 348.05°)
OKLaboklab(53.46% 0.1643 -0.0298)
OKLCHoklch(53.46% 0.167 349.7)
XYZxyz(22.7186, 13.4727, 20.1391)
Luminance0.1347 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF397B #39AF6D
analogous
#A839AF #AF397B #AF3940
triadic
#AF397B #7BAF39 #397BAF
tetradic
#AF397B #AFA839 #39AF6D #3940AF
square
#AF397B #AFA839 #39AF6D #3940AF
split-complementary
#AF397B #40AF39 #39AFA8
monochromatic
#531B3A #812A5B #AF397B #CA5B99 #D98AB6

Accessibility & contrast

On white

5.68
#AF397B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF397B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF397B
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF397B#FFFFFF#000000##FFFFFF
##AF397B1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A597D
Deuteranopia (green-blind)
#6B6E78
Tritanopia (blue-blind)
#BB3355
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af397b;
/* rgb */ color: rgb(175, 57, 123);
/* oklch */ color: oklch(53.5% 0.167 349.7);
Tailwind
colors: {
  custom: {
    50: '#cb78a1',
    500: '#af397b',
    950: '#000000',
  },
}
SCSS
$custom: #af397b;
$custom-light: #cb78a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af397b",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 326.441,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53464,
    "c": 0.16694,
    "h": 349.7
  },
  "luminance": 0.1347
}

Semantic roles & 50–950 ramp

primary
#AF397B
secondary
#81C39E
accent
#DA8C4D
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AF397B

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

Preview Lab → · Contrast checker → · Palette generator →

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