#AF508E#AF508E

#AF508E is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.1% C 0.144 H 342.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF508E
RGBrgb(175, 80, 142)
HSLhsl(321, 37%, 50%)
HSVhsv(321, 54%, 69%)
CMYKcmyk(0%, 54.3%, 18.9%, 31.4%)
CIE-LABlab(48.02, 46.26, -16.04)
CIE-LCHlch(48.02, 48.96, 340.88°)
OKLaboklab(57.06% 0.1376 -0.0427)
OKLCHoklch(57.06% 0.144 342.8)
XYZxyz(25.4309, 16.8063, 27.4905)
Luminance0.1680 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF508E #50AF71
analogous
#A050AF #AF508E #AF505F
triadic
#AF508E #8EAF50 #508EAF
tetradic
#AF508E #AFA050 #50AF71 #505FAF
square
#AF508E #AFA050 #50AF71 #505FAF
split-complementary
#AF508E #5FAF50 #50AFA0
monochromatic
#5B2A4A #853D6C #AF508E #C27AA9 #D5A4C4

Accessibility & contrast

On white

4.82
#AF508E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AF508E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF508E
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF508E#FFFFFF#000000##FFFFFF
##AF508E1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#576890
Deuteranopia (green-blind)
#71788C
Tritanopia (blue-blind)
#B95068
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af508e;
/* rgb */ color: rgb(175, 80, 142);
/* oklch */ color: oklch(57.1% 0.144 342.8);
Tailwind
colors: {
  custom: {
    50: '#c985af',
    500: '#af508e',
    950: '#000000',
  },
}
SCSS
$custom: #af508e;
$custom-light: #c985af;
$custom-dark: #000000;
JSON
{
  "hex": "#af508e",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 320.842,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.57061,
    "c": 0.14407,
    "h": 342.8
  },
  "luminance": 0.16804
}

Semantic roles & 50–950 ramp

primary
#AF508E
secondary
#98C3A7
accent
#CD825B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF508E

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

Preview Lab → · Contrast checker → · Palette generator →

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