#AF5199#AF5199

#AF5199 is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.7% C 0.151 H 337.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF5199
RGBrgb(175, 81, 153)
HSLhsl(314, 37%, 50%)
HSVhsv(314, 54%, 69%)
CMYKcmyk(0%, 53.7%, 12.6%, 31.4%)
CIE-LABlab(48.64, 47.51, -21.64)
CIE-LCHlch(48.64, 52.20, 335.51°)
OKLaboklab(57.67% 0.1388 -0.0584)
OKLCHoklch(57.67% 0.151 337.2)
XYZxyz(26.3716, 17.3007, 32.0812)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5199 #51AF67
analogous
#9651AF #AF5199 #AF516A
triadic
#AF5199 #99AF51 #5199AF
tetradic
#AF5199 #AF9651 #51AF67 #516AAF
square
#AF5199 #AF9651 #51AF67 #516AAF
split-complementary
#AF5199 #6AAF51 #51AF96
monochromatic
#5C2A50 #853D75 #AF5199 #C27BB2 #D6A5CA

Accessibility & contrast

On white

4.71
#AF5199 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF5199 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5199
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5199#FFFFFF#000000##FFFFFF
##AF51991.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536A9B
Deuteranopia (green-blind)
#6E7996
Tritanopia (blue-blind)
#B7556E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af5199;
/* rgb */ color: rgb(175, 81, 153);
/* oklch */ color: oklch(57.7% 0.151 337.2);
Tailwind
colors: {
  custom: {
    50: '#c986b7',
    500: '#af5199',
    950: '#000000',
  },
}
SCSS
$custom: #af5199;
$custom-light: #c986b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5199",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 314.043,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57665,
    "c": 0.15057,
    "h": 337.2
  },
  "luminance": 0.17299
}

Semantic roles & 50–950 ramp

primary
#AF5199
secondary
#99C3A3
accent
#CD765B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF5199

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

Preview Lab → · Contrast checker → · Palette generator →

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