#AF56BC#AF56BC

#AF56BC is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.0% C 0.173 H 322.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF56BC
RGBrgb(175, 86, 188)
HSLhsl(292, 43%, 54%)
HSVhsv(292, 54%, 74%)
CMYKcmyk(6.9%, 54.3%, 0%, 26.3%)
CIE-LABlab(51.15, 51.29, -38.24)
CIE-LCHlch(51.15, 63.97, 323.30°)
OKLaboklab(60.04% 0.1374 -0.1059)
OKLCHoklch(60.04% 0.173 322.4)
XYZxyz(30.0831, 19.4018, 49.7275)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56BC #63BC56
analogous
#7C56BC #AF56BC #BC5696
triadic
#AF56BC #BCAF56 #56BCAF
tetradic
#AF56BC #BC7C56 #63BC56 #5696BC
square
#AF56BC #BC7C56 #63BC56 #5696BC
split-complementary
#AF56BC #96BC56 #56BC7C
monochromatic
#642B6D #8D3C98 #AF56BC #C482CD #D8AEDF

Accessibility & contrast

On white

4.30
#AF56BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AF56BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56BC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56BC#FFFFFF#000000##000000
##AF56BC1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4573BF
Deuteranopia (green-blind)
#627DB9
Tritanopia (blue-blind)
#B16481
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af56bc;
/* rgb */ color: rgb(175, 86, 188);
/* oklch */ color: oklch(60.0% 0.173 322.4);
Tailwind
colors: {
  custom: {
    50: '#c98ad0',
    500: '#af56bc',
    950: '#000000',
  },
}
SCSS
$custom: #af56bc;
$custom-light: #c98ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#af56bc",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 292.353,
    "s": 43.22,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60043,
    "c": 0.17349,
    "h": 322.4
  },
  "luminance": 0.194
}

Semantic roles & 50–950 ramp

primary
#AF56BC
secondary
#A7CDA1
accent
#D35565
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF56BC

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

Preview Lab → · Contrast checker → · Palette generator →

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