#AF5797#AF5797

#AF5797 is a mid, vivid pink. Relative luminance 0.182; OKLCH L 58.4% C 0.139 H 338.7°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AF5797
RGBrgb(175, 87, 151)
HSLhsl(316, 35%, 51%)
HSVhsv(316, 50%, 69%)
CMYKcmyk(0%, 50.3%, 13.7%, 31.4%)
CIE-LABlab(49.70, 44.17, -18.83)
CIE-LCHlch(49.70, 48.02, 336.92°)
OKLaboklab(58.43% 0.1295 -0.0505)
OKLCHoklch(58.43% 0.139 338.7)
XYZxyz(26.6736, 18.1666, 31.3738)
Luminance0.1817 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5797 #57AF6F
analogous
#9B57AF #AF5797 #AF576B
triadic
#AF5797 #97AF57 #5797AF
tetradic
#AF5797 #AF9B57 #57AF6F #576BAF
square
#AF5797 #AF9B57 #57AF6F #576BAF
split-complementary
#AF5797 #6BAF57 #57AF9B
monochromatic
#5F2D51 #884175 #AF5797 #C380B1 #D6AACA

Accessibility & contrast

On white

4.53
#AF5797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#AF5797 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5797
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5797#FFFFFF#000000##000000
##AF57971.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A6E99
Deuteranopia (green-blind)
#727B95
Tritanopia (blue-blind)
#B75970
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af5797;
/* rgb */ color: rgb(175, 87, 151);
/* oklch */ color: oklch(58.4% 0.139 338.7);
Tailwind
colors: {
  custom: {
    50: '#c989b5',
    500: '#af5797',
    950: '#000000',
  },
}
SCSS
$custom: #af5797;
$custom-light: #c989b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5797",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 316.364,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58427,
    "c": 0.13898,
    "h": 338.7
  },
  "luminance": 0.18165
}

Semantic roles & 50–950 ramp

primary
#AF5797
secondary
#9EC4A8
accent
#CC7B5C
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130C11
muted
#827D80

Preview Lab

Preview with #AF5797

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

Preview Lab → · Contrast checker → · Palette generator →

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