#AF509E#AF509E

#AF509E is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.8% C 0.156 H 334.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF509E
RGBrgb(175, 80, 158)
HSLhsl(311, 37%, 50%)
HSVhsv(311, 54%, 69%)
CMYKcmyk(0%, 54.3%, 9.7%, 31.4%)
CIE-LABlab(48.66, 48.82, -24.57)
CIE-LCHlch(48.66, 54.65, 333.29°)
OKLaboklab(57.75% 0.1412 -0.0666)
OKLCHoklch(57.75% 0.156 334.7)
XYZxyz(26.7195, 17.3218, 34.2772)
Luminance0.1732 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF509E #50AF61
analogous
#9150AF #AF509E #AF506E
triadic
#AF509E #9EAF50 #509EAF
tetradic
#AF509E #AF9150 #50AF61 #506EAF
square
#AF509E #AF9150 #50AF61 #506EAF
split-complementary
#AF509E #6EAF50 #50AF91
monochromatic
#5B2A52 #853D78 #AF509E #C27AB5 #D5A4CD

Accessibility & contrast

On white

4.70
#AF509E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF509E
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF509E#FFFFFF#000000##FFFFFF
##AF509E1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506BA1
Deuteranopia (green-blind)
#6C799B
Tritanopia (blue-blind)
#B75570
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af509e;
/* rgb */ color: rgb(175, 80, 158);
/* oklch */ color: oklch(57.8% 0.156 334.7);
Tailwind
colors: {
  custom: {
    50: '#c985bb',
    500: '#af509e',
    950: '#000000',
  },
}
SCSS
$custom: #af509e;
$custom-light: #c985bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af509e",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 310.737,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.57753,
    "c": 0.15619,
    "h": 334.7
  },
  "luminance": 0.1732
}

Semantic roles & 50–950 ramp

primary
#AF509E
secondary
#98C3A0
accent
#CD6F5B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF509E

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

Preview Lab → · Contrast checker → · Palette generator →

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