#AF3797#AF3797

#AF3797 is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.5% C 0.187 H 336.9°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF3797
RGBrgb(175, 55, 151)
HSLhsl(312, 52%, 45%)
HSVhsv(312, 69%, 69%)
CMYKcmyk(0%, 68.6%, 13.7%, 31.4%)
CIE-LABlab(44.35, 58.64, -27.08)
CIE-LCHlch(44.35, 64.59, 335.21°)
OKLaboklab(54.49% 0.1723 -0.0736)
OKLCHoklch(54.49% 0.187 336.9)
XYZxyz(24.6317, 14.0829, 30.6932)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3797 #37AF4F
analogous
#8B37AF #AF3797 #AF375B
triadic
#AF3797 #97AF37 #3797AF
tetradic
#AF3797 #AF8B37 #37AF4F #375BAF
square
#AF3797 #AF8B37 #37AF4F #375BAF
split-complementary
#AF3797 #5BAF37 #37AF8B
monochromatic
#521A47 #80286F #AF3797 #CB59B4 #D987C9

Accessibility & contrast

On white

5.50
#AF3797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF3797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3797
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3797#FFFFFF#000000##FFFFFF
##AF37971.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5D9A
Deuteranopia (green-blind)
#616F94
Tritanopia (blue-blind)
#B83E62
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3797;
/* rgb */ color: rgb(175, 55, 151);
/* oklch */ color: oklch(54.5% 0.187 336.9);
Tailwind
colors: {
  custom: {
    50: '#ca78b6',
    500: '#af3797',
    950: '#000000',
  },
}
SCSS
$custom: #af3797;
$custom-light: #ca78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3797",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 312,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54492,
    "c": 0.18735,
    "h": 336.9
  },
  "luminance": 0.14081
}

Semantic roles & 50–950 ramp

primary
#AF3797
secondary
#7FC38C
accent
#DC694C
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3797

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

Preview Lab → · Contrast checker → · Palette generator →

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