#AF508C#AF508C

#AF508C is a mid, vivid pink. Relative luminance 0.167; OKLCH L 57.0% C 0.143 H 343.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF508C
RGBrgb(175, 80, 140)
HSLhsl(322, 37%, 50%)
HSVhsv(322, 54%, 69%)
CMYKcmyk(0%, 54.3%, 20%, 31.4%)
CIE-LABlab(47.94, 45.96, -14.95)
CIE-LCHlch(47.94, 48.33, 341.98°)
OKLaboklab(56.98% 0.1371 -0.0397)
OKLCHoklch(56.98% 0.143 343.8)
XYZxyz(25.2821, 16.7468, 26.7068)
Luminance0.1674 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF508C #50AF73
analogous
#A250AF #AF508C #AF505D
triadic
#AF508C #8CAF50 #508CAF
tetradic
#AF508C #AFA250 #50AF73 #505DAF
square
#AF508C #AFA250 #50AF73 #505DAF
split-complementary
#AF508C #5DAF50 #50AFA2
monochromatic
#5B2A49 #853D6A #AF508C #C27AA8 #D5A4C3

Accessibility & contrast

On white

4.83
#AF508C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF508C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF508C
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF508C#FFFFFF#000000##FFFFFF
##AF508C1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57688E
Deuteranopia (green-blind)
#72788A
Tritanopia (blue-blind)
#B95068
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af508c;
/* rgb */ color: rgb(175, 80, 140);
/* oklch */ color: oklch(57.0% 0.143 343.8);
Tailwind
colors: {
  custom: {
    50: '#c985ad',
    500: '#af508c',
    950: '#000000',
  },
}
SCSS
$custom: #af508c;
$custom-light: #c985ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af508c",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 322.105,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.56979,
    "c": 0.14271,
    "h": 343.8
  },
  "luminance": 0.16745
}

Semantic roles & 50–950 ramp

primary
#AF508C
secondary
#98C3A8
accent
#CD855B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F

Preview Lab

Preview with #AF508C

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

Preview Lab → · Contrast checker → · Palette generator →

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