#AF5299#AF5299

#AF5299 is a mid, vivid pink. Relative luminance 0.174; OKLCH L 57.8% C 0.149 H 337.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF5299
RGBrgb(175, 82, 153)
HSLhsl(314, 37%, 50%)
HSVhsv(314, 53%, 69%)
CMYKcmyk(0%, 53.1%, 12.6%, 31.4%)
CIE-LABlab(48.82, 47.01, -21.36)
CIE-LCHlch(48.82, 51.64, 335.57°)
OKLaboklab(57.8% 0.1373 -0.0576)
OKLCHoklch(57.8% 0.149 337.2)
XYZxyz(26.4465, 17.4504, 32.1062)
Luminance0.1745 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5299 #52AF68
analogous
#9752AF #AF5299 #AF526A
triadic
#AF5299 #99AF52 #5299AF
tetradic
#AF5299 #AF9752 #52AF68 #526AAF
square
#AF5299 #AF9752 #52AF68 #526AAF
split-complementary
#AF5299 #6AAF52 #52AF97
monochromatic
#5C2B50 #863E75 #AF5299 #C27CB2 #D6A6CA

Accessibility & contrast

On white

4.68
#AF5299 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AF5299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5299
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5299#FFFFFF#000000##FFFFFF
##AF52991.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#546B9B
Deuteranopia (green-blind)
#6F7996
Tritanopia (blue-blind)
#B7556E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af5299;
/* rgb */ color: rgb(175, 82, 153);
/* oklch */ color: oklch(57.8% 0.149 337.2);
Tailwind
colors: {
  custom: {
    50: '#c986b7',
    500: '#af5299',
    950: '#000000',
  },
}
SCSS
$custom: #af5299;
$custom-light: #c986b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5299",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 314.194,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57803,
    "c": 0.14892,
    "h": 337.2
  },
  "luminance": 0.17448
}

Semantic roles & 50–950 ramp

primary
#AF5299
secondary
#9AC3A3
accent
#CD765B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF5299

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

Preview Lab → · Contrast checker → · Palette generator →

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