#AF57BD#AF57BD

#AF57BD is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.2% C 0.173 H 322.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF57BD
RGBrgb(175, 87, 189)
HSLhsl(292, 44%, 54%)
HSVhsv(292, 54%, 74%)
CMYKcmyk(7.4%, 54%, 0%, 25.9%)
CIE-LABlab(51.39, 50.99, -38.45)
CIE-LCHlch(51.39, 63.86, 322.98°)
OKLaboklab(60.23% 0.1362 -0.1065)
OKLCHoklch(60.23% 0.173 322)
XYZxyz(30.2717, 19.6059, 50.3240)
Luminance0.1960 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57BD #65BD57
analogous
#7C57BD #AF57BD #BD5798
triadic
#AF57BD #BDAF57 #57BDAF
tetradic
#AF57BD #BD7C57 #65BD57 #5798BD
square
#AF57BD #BD7C57 #65BD57 #5798BD
split-complementary
#AF57BD #98BD57 #57BD7C
monochromatic
#652B6E #8D3D9A #AF57BD #C483CE #D9AFE0

Accessibility & contrast

On white

4.27
#AF57BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AF57BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57BD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57BD#FFFFFF#000000##000000
##AF57BD1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4674C0
Deuteranopia (green-blind)
#637EBA
Tritanopia (blue-blind)
#B16582
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af57bd;
/* rgb */ color: rgb(175, 87, 189);
/* oklch */ color: oklch(60.2% 0.173 322.0);
Tailwind
colors: {
  custom: {
    50: '#c98ad1',
    500: '#af57bd',
    950: '#000000',
  },
}
SCSS
$custom: #af57bd;
$custom-light: #c98ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#af57bd",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 189
  },
  "hsl": {
    "h": 291.765,
    "s": 43.59,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60232,
    "c": 0.17288,
    "h": 322
  },
  "luminance": 0.19604
}

Semantic roles & 50–950 ramp

primary
#AF57BD
secondary
#A8CEA2
accent
#D35466
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF57BD

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

Preview Lab → · Contrast checker → · Palette generator →

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