#AF3A97#AF3A97

#AF3A97 is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.8% C 0.183 H 337.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF3A97
RGBrgb(175, 58, 151)
HSLhsl(312, 50%, 46%)
HSVhsv(312, 67%, 69%)
CMYKcmyk(0%, 66.9%, 13.7%, 31.4%)
CIE-LABlab(44.77, 57.48, -26.43)
CIE-LCHlch(44.77, 63.27, 335.30°)
OKLaboklab(54.8% 0.1688 -0.0717)
OKLCHoklch(54.8% 0.183 337)
XYZxyz(24.7785, 14.3766, 30.7421)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3A97 #3AAF52
analogous
#8C3AAF #AF3A97 #AF3A5C
triadic
#AF3A97 #97AF3A #3A97AF
tetradic
#AF3A97 #AF8C3A #3AAF52 #3A5CAF
square
#AF3A97 #AF8C3A #3AAF52 #3A5CAF
split-complementary
#AF3A97 #5CAF3A #3AAF8C
monochromatic
#531C48 #812B6F #AF3A97 #C95DB3 #D98BC9

Accessibility & contrast

On white

5.42
#AF3A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF3A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3A97
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3A97#FFFFFF#000000##FFFFFF
##AF3A971.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5E9A
Deuteranopia (green-blind)
#627094
Tritanopia (blue-blind)
#B84063
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af3a97;
/* rgb */ color: rgb(175, 58, 151);
/* oklch */ color: oklch(54.8% 0.183 337.0);
Tailwind
colors: {
  custom: {
    50: '#ca79b6',
    500: '#af3a97',
    950: '#000000',
  },
}
SCSS
$custom: #af3a97;
$custom-light: #ca79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3a97",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 312.308,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54795,
    "c": 0.18344,
    "h": 337
  },
  "luminance": 0.14374
}

Semantic roles & 50–950 ramp

primary
#AF3A97
secondary
#82C38F
accent
#DA6B4E
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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