#AF397D#AF397D

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

Color values

HEX#AF397D
RGBrgb(175, 57, 125)
HSLhsl(325, 51%, 45%)
HSVhsv(325, 67%, 69%)
CMYKcmyk(0%, 67.4%, 28.6%, 31.4%)
CIE-LABlab(43.54, 54.23, -12.54)
CIE-LCHlch(43.54, 55.66, 346.98°)
OKLaboklab(53.54% 0.1648 -0.0329)
OKLCHoklch(53.54% 0.168 348.7)
XYZxyz(22.8450, 13.5233, 20.8052)
Luminance0.1352 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF397D #39AF6B
analogous
#A639AF #AF397D #AF3942
triadic
#AF397D #7DAF39 #397DAF
tetradic
#AF397D #AFA639 #39AF6B #3942AF
square
#AF397D #AFA639 #39AF6B #3942AF
split-complementary
#AF397D #42AF39 #39AFA6
monochromatic
#531B3B #812A5C #AF397D #CA5B9B #D98AB7

Accessibility & contrast

On white

5.67
#AF397D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF397D
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF397D#FFFFFF#000000##FFFFFF
##AF397D1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495A7F
Deuteranopia (green-blind)
#6B6E7A
Tritanopia (blue-blind)
#BB3456
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af397d;
/* rgb */ color: rgb(175, 57, 125);
/* oklch */ color: oklch(53.5% 0.168 348.7);
Tailwind
colors: {
  custom: {
    50: '#cb78a2',
    500: '#af397d',
    950: '#000000',
  },
}
SCSS
$custom: #af397d;
$custom-light: #cb78a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af397d",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 325.424,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53543,
    "c": 0.16802,
    "h": 348.7
  },
  "luminance": 0.13521
}

Semantic roles & 50–950 ramp

primary
#AF397D
secondary
#81C39D
accent
#DA894D
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AF397D

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

Preview Lab → · Contrast checker → · Palette generator →

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