#AF3197#AF3197

#AF3197 is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.9% C 0.195 H 336.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF3197
RGBrgb(175, 49, 151)
HSLhsl(311, 56%, 44%)
HSVhsv(311, 72%, 69%)
CMYKcmyk(0%, 72%, 13.7%, 31.4%)
CIE-LABlab(43.58, 60.82, -28.29)
CIE-LCHlch(43.58, 67.08, 335.06°)
OKLaboklab(53.93% 0.1788 -0.077)
OKLCHoklch(53.93% 0.195 336.7)
XYZxyz(24.3638, 13.5472, 30.6039)
Luminance0.1354 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3197 #31AF49
analogous
#8831AF #AF3197 #AF3158
triadic
#AF3197 #97AF31 #3197AF
tetradic
#AF3197 #AF8831 #31AF49 #3158AF
square
#AF3197 #AF8831 #31AF49 #3158AF
split-complementary
#AF3197 #58AF31 #31AF88
monochromatic
#4F1644 #7F246E #AF3197 #CE4FB6 #DB7FCA

Accessibility & contrast

On white

5.66
#AF3197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF3197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3197
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3197#FFFFFF#000000##FFFFFF
##AF31971.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9A
Deuteranopia (green-blind)
#5F6E94
Tritanopia (blue-blind)
#B83960
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af3197;
/* rgb */ color: rgb(175, 49, 151);
/* oklch */ color: oklch(53.9% 0.195 336.7);
Tailwind
colors: {
  custom: {
    50: '#cb75b6',
    500: '#af3197',
    950: '#000000',
  },
}
SCSS
$custom: #af3197;
$custom-light: #cb75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3197",
  "rgb": {
    "r": 175,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 311.429,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5393,
    "c": 0.19466,
    "h": 336.7
  },
  "luminance": 0.13545
}

Semantic roles & 50–950 ramp

primary
#AF3197
secondary
#78C486
accent
#E06548
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3197

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

Preview Lab → · Contrast checker → · Palette generator →

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