#AF3897#AF3897

#AF3897 is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.6% C 0.186 H 336.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF3897
RGBrgb(175, 56, 151)
HSLhsl(312, 52%, 45%)
HSVhsv(312, 68%, 69%)
CMYKcmyk(0%, 68%, 13.7%, 31.4%)
CIE-LABlab(44.49, 58.26, -26.87)
CIE-LCHlch(44.49, 64.16, 335.24°)
OKLaboklab(54.59% 0.1712 -0.073)
OKLCHoklch(54.59% 0.186 336.9)
XYZxyz(24.6797, 14.1788, 30.7091)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3897 #38AF50
analogous
#8B38AF #AF3897 #AF385B
triadic
#AF3897 #97AF38 #3897AF
tetradic
#AF3897 #AF8B38 #38AF50 #385BAF
square
#AF3897 #AF8B38 #38AF50 #385BAF
split-complementary
#AF3897 #5BAF38 #38AF8B
monochromatic
#521A47 #81296F #AF3897 #CA5AB4 #D988C9

Accessibility & contrast

On white

5.48
#AF3897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF3897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3897
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3897#FFFFFF#000000##FFFFFF
##AF38971.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5E9A
Deuteranopia (green-blind)
#627094
Tritanopia (blue-blind)
#B83E62
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3897;
/* rgb */ color: rgb(175, 56, 151);
/* oklch */ color: oklch(54.6% 0.186 336.9);
Tailwind
colors: {
  custom: {
    50: '#ca78b6',
    500: '#af3897',
    950: '#000000',
  },
}
SCSS
$custom: #af3897;
$custom-light: #ca78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3897",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 312.101,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54591,
    "c": 0.18607,
    "h": 336.9
  },
  "luminance": 0.14177
}

Semantic roles & 50–950 ramp

primary
#AF3897
secondary
#80C38D
accent
#DB694D
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3897

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

Preview Lab → · Contrast checker → · Palette generator →

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