#AF397C#AF397C

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

Color values

HEX#AF397C
RGBrgb(175, 57, 124)
HSLhsl(326, 51%, 45%)
HSVhsv(326, 67%, 69%)
CMYKcmyk(0%, 67.4%, 29.1%, 31.4%)
CIE-LABlab(43.50, 54.10, -11.98)
CIE-LCHlch(43.50, 55.42, 347.51°)
OKLaboklab(53.5% 0.1645 -0.0313)
OKLCHoklch(53.5% 0.167 349.2)
XYZxyz(22.7815, 13.4979, 20.4705)
Luminance0.1349 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF397C #39AF6C
analogous
#A739AF #AF397C #AF3941
triadic
#AF397C #7CAF39 #397CAF
tetradic
#AF397C #AFA739 #39AF6C #3941AF
square
#AF397C #AFA739 #39AF6C #3941AF
split-complementary
#AF397C #41AF39 #39AFA7
monochromatic
#531B3B #812A5B #AF397C #CA5B9A #D98AB7

Accessibility & contrast

On white

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

On black

3.70
#AF397C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF397C#FFFFFF#000000##FFFFFF
##AF397C1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495A7E
Deuteranopia (green-blind)
#6B6E79
Tritanopia (blue-blind)
#BB3455
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af397c;
/* rgb */ color: rgb(175, 57, 124);
/* oklch */ color: oklch(53.5% 0.167 349.2);
Tailwind
colors: {
  custom: {
    50: '#cb78a2',
    500: '#af397c',
    950: '#000000',
  },
}
SCSS
$custom: #af397c;
$custom-light: #cb78a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af397c",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 325.932,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53503,
    "c": 0.16748,
    "h": 349.2
  },
  "luminance": 0.13495
}

Semantic roles & 50–950 ramp

primary
#AF397C
secondary
#81C39D
accent
#DA8A4D
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#14090F
muted
#827B7E

Preview Lab

Preview with #AF397C

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

Preview Lab → · Contrast checker → · Palette generator →

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