#AF3799#AF3799

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

Color values

HEX#AF3799
RGBrgb(175, 55, 153)
HSLhsl(311, 52%, 45%)
HSVhsv(311, 69%, 69%)
CMYKcmyk(0%, 68.6%, 12.6%, 31.4%)
CIE-LABlab(44.45, 58.94, -28.14)
CIE-LCHlch(44.45, 65.32, 334.48°)
OKLaboklab(54.59% 0.1726 -0.0766)
OKLCHoklch(54.59% 0.189 336.1)
XYZxyz(24.7955, 14.1484, 31.5558)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3799 #37AF4D
analogous
#8937AF #AF3799 #AF375D
triadic
#AF3799 #99AF37 #3799AF
tetradic
#AF3799 #AF8937 #37AF4D #375DAF
square
#AF3799 #AF8937 #37AF4D #375DAF
split-complementary
#AF3799 #5DAF37 #37AF89
monochromatic
#521A48 #802870 #AF3799 #CB59B6 #D987CA

Accessibility & contrast

On white

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

On black

3.83
#AF3799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF3799#FFFFFF#000000##FFFFFF
##AF37991.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395E9C
Deuteranopia (green-blind)
#607096
Tritanopia (blue-blind)
#B83F63
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3799;
/* rgb */ color: rgb(175, 55, 153);
/* oklch */ color: oklch(54.6% 0.189 336.1);
Tailwind
colors: {
  custom: {
    50: '#ca78b7',
    500: '#af3799',
    950: '#000000',
  },
}
SCSS
$custom: #af3799;
$custom-light: #ca78b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3799",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 311,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5459,
    "c": 0.18879,
    "h": 336.1
  },
  "luminance": 0.14146
}

Semantic roles & 50–950 ramp

primary
#AF3799
secondary
#7FC38B
accent
#DC664C
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3799

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

Preview Lab → · Contrast checker → · Palette generator →

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