#AF57D8#AF57D8

#AF57D8 is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.8% C 0.200 H 313.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF57D8
RGBrgb(175, 87, 216)
HSLhsl(281, 62%, 59%)
HSVhsv(281, 60%, 85%)
CMYKcmyk(19%, 59.7%, 0%, 15.3%)
CIE-LABlab(52.83, 56.44, -51.63)
CIE-LCHlch(52.83, 76.50, 317.55°)
OKLaboklab(61.75% 0.1377 -0.1449)
OKLCHoklch(61.75% 0.2 313.6)
XYZxyz(33.4800, 20.8892, 67.2208)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57D8 #80D857
analogous
#6F57D8 #AF57D8 #D857C1
triadic
#AF57D8 #D8AF57 #57D8AF
tetradic
#AF57D8 #D86F57 #80D857 #57C1D8
square
#AF57D8 #D86F57 #80D857 #57C1D8
split-complementary
#AF57D8 #C1D857 #57D86F
monochromatic
#6F2293 #942EC4 #AF57D8 #C789E4 #DEBAEF

Accessibility & contrast

On white

4.06
#AF57D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF57D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57D8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57D8#FFFFFF#000000##000000
##AF57D81.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C79DC
Deuteranopia (green-blind)
#5180D5
Tritanopia (blue-blind)
#AB6E8F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af57d8;
/* rgb */ color: rgb(175, 87, 216);
/* oklch */ color: oklch(61.8% 0.200 313.6);
Tailwind
colors: {
  custom: {
    50: '#ca8be5',
    500: '#af57d8',
    950: '#000000',
  },
}
SCSS
$custom: #af57d8;
$custom-light: #ca8be5;
$custom-dark: #000000;
JSON
{
  "hex": "#af57d8",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 216
  },
  "hsl": {
    "h": 280.93,
    "s": 62.319,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6175,
    "c": 0.19988,
    "h": 313.6
  },
  "luminance": 0.20888
}

Semantic roles & 50–950 ramp

primary
#AF57D8
secondary
#BCDFAC
accent
#E54276
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57D8

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

Preview Lab → · Contrast checker → · Palette generator →

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