#AF3B97#AF3B97

#AF3B97 is a mid, vivid pink. Relative luminance 0.145; OKLCH L 54.9% C 0.182 H 337.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AF3B97
RGBrgb(175, 59, 151)
HSLhsl(312, 50%, 46%)
HSVhsv(312, 66%, 69%)
CMYKcmyk(0%, 66.3%, 13.7%, 31.4%)
CIE-LABlab(44.91, 57.08, -26.21)
CIE-LCHlch(44.91, 62.81, 335.34°)
OKLaboklab(54.9% 0.1677 -0.0711)
OKLCHoklch(54.9% 0.182 337)
XYZxyz(24.8295, 14.4784, 30.7591)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3B97 #3BAF53
analogous
#8D3BAF #AF3B97 #AF3B5D
triadic
#AF3B97 #97AF3B #3B97AF
tetradic
#AF3B97 #AF8D3B #3BAF53 #3B5DAF
square
#AF3B97 #AF8D3B #3BAF53 #3B5DAF
split-complementary
#AF3B97 #5DAF3B #3BAF8D
monochromatic
#531C48 #812C70 #AF3B97 #C95EB3 #D88CC9

Accessibility & contrast

On white

5.39
#AF3B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF3B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3B97
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3B97#FFFFFF#000000##FFFFFF
##AF3B971.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#637194
Tritanopia (blue-blind)
#B84164
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af3b97;
/* rgb */ color: rgb(175, 59, 151);
/* oklch */ color: oklch(54.9% 0.182 337.0);
Tailwind
colors: {
  custom: {
    50: '#ca7ab6',
    500: '#af3b97',
    950: '#000000',
  },
}
SCSS
$custom: #af3b97;
$custom-light: #ca7ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3b97",
  "rgb": {
    "r": 175,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 312.414,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54899,
    "c": 0.18212,
    "h": 337
  },
  "luminance": 0.14476
}

Semantic roles & 50–950 ramp

primary
#AF3B97
secondary
#83C390
accent
#D96B4F
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3B97

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

Preview Lab → · Contrast checker → · Palette generator →

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