#AF56AB#AF56AB

#AF56AB is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.2% C 0.158 H 329.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF56AB
RGBrgb(175, 86, 171)
HSLhsl(303, 36%, 51%)
HSVhsv(303, 51%, 69%)
CMYKcmyk(0%, 50.9%, 2.3%, 31.4%)
CIE-LABlab(50.35, 48.12, -29.60)
CIE-LCHlch(50.35, 56.50, 328.40°)
OKLaboklab(59.19% 0.1351 -0.081)
OKLCHoklch(59.19% 0.158 329)
XYZxyz(28.3573, 18.7115, 40.6382)
Luminance0.1871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56AB #56AF5A
analogous
#8656AF #AF56AB #AF567E
triadic
#AF56AB #ABAF56 #56ABAF
tetradic
#AF56AB #AF8656 #56AF5A #567EAF
square
#AF56AB #AF8656 #56AF5A #567EAF
split-complementary
#AF56AB #7EAF56 #56AF86
monochromatic
#5E2D5C #884084 #AF56AB #C380C0 #D6A9D4

Accessibility & contrast

On white

4.43
#AF56AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AF56AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56AB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56AB#FFFFFF#000000##000000
##AF56AB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5070AE
Deuteranopia (green-blind)
#6A7CA8
Tritanopia (blue-blind)
#B45E79
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af56ab;
/* rgb */ color: rgb(175, 86, 171);
/* oklch */ color: oklch(59.2% 0.158 329.0);
Tailwind
colors: {
  custom: {
    50: '#c989c4',
    500: '#af56ab',
    950: '#000000',
  },
}
SCSS
$custom: #af56ab;
$custom-light: #c989c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ab",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 302.697,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59186,
    "c": 0.15755,
    "h": 329
  },
  "luminance": 0.1871
}

Semantic roles & 50–950 ramp

primary
#AF56AB
secondary
#9DC49F
accent
#CC615C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF56AB

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

Preview Lab → · Contrast checker → · Palette generator →

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