#AF5197#AF5197

#AF5197 is a mid, vivid pink. Relative luminance 0.172; OKLCH L 57.6% C 0.149 H 338.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF5197
RGBrgb(175, 81, 151)
HSLhsl(315, 37%, 50%)
HSVhsv(315, 54%, 69%)
CMYKcmyk(0%, 53.7%, 13.7%, 31.4%)
CIE-LABlab(48.55, 47.18, -20.58)
CIE-LCHlch(48.55, 51.48, 336.44°)
OKLaboklab(57.58% 0.1383 -0.0554)
OKLCHoklch(57.58% 0.149 338.2)
XYZxyz(26.2078, 17.2351, 31.2185)
Luminance0.1723 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5197 #51AF69
analogous
#9851AF #AF5197 #AF5168
triadic
#AF5197 #97AF51 #5197AF
tetradic
#AF5197 #AF9851 #51AF69 #5168AF
square
#AF5197 #AF9851 #51AF69 #5168AF
split-complementary
#AF5197 #68AF51 #51AF98
monochromatic
#5C2A4F #853D73 #AF5197 #C27BB0 #D6A5C9

Accessibility & contrast

On white

4.72
#AF5197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF5197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5197
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5197#FFFFFF#000000##FFFFFF
##AF51971.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546A99
Deuteranopia (green-blind)
#6F7994
Tritanopia (blue-blind)
#B8546D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af5197;
/* rgb */ color: rgb(175, 81, 151);
/* oklch */ color: oklch(57.6% 0.149 338.2);
Tailwind
colors: {
  custom: {
    50: '#c986b5',
    500: '#af5197',
    950: '#000000',
  },
}
SCSS
$custom: #af5197;
$custom-light: #c986b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5197",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 151
  },
  "hsl": {
    "h": 315.319,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57578,
    "c": 0.14901,
    "h": 338.2
  },
  "luminance": 0.17233
}

Semantic roles & 50–950 ramp

primary
#AF5197
secondary
#99C3A4
accent
#CD785B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF5197

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

Preview Lab → · Contrast checker → · Palette generator →

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