#AF57CC#AF57CC

#AF57CC is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.1% C 0.188 H 317.0°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF57CC
RGBrgb(175, 87, 204)
HSLhsl(285, 53%, 57%)
HSVhsv(285, 57%, 80%)
CMYKcmyk(14.2%, 57.4%, 0%, 20%)
CIE-LABlab(52.16, 53.97, -45.85)
CIE-LCHlch(52.16, 70.81, 319.65°)
OKLaboklab(61.05% 0.1374 -0.128)
OKLCHoklch(61.05% 0.188 317)
XYZxyz(31.9849, 20.2911, 59.3468)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57CC #74CC57
analogous
#7457CC #AF57CC #CC57AF
triadic
#AF57CC #CCAF57 #57CCAF
tetradic
#AF57CC #CC7457 #74CC57 #57AFCC
square
#AF57CC #CC7457 #74CC57 #57AFCC
split-complementary
#AF57CC #AFCC57 #57CC74
monochromatic
#6B2781 #9236B0 #AF57CC #C586DA #DCB5E9

Accessibility & contrast

On white

4.15
#AF57CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AF57CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57CC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57CC#FFFFFF#000000##000000
##AF57CC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A77D0
Deuteranopia (green-blind)
#5A7FC9
Tritanopia (blue-blind)
#AE6A89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af57cc;
/* rgb */ color: rgb(175, 87, 204);
/* oklch */ color: oklch(61.1% 0.188 317.0);
Tailwind
colors: {
  custom: {
    50: '#ca8bdc',
    500: '#af57cc',
    950: '#000000',
  },
}
SCSS
$custom: #af57cc;
$custom-light: #ca8bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#af57cc",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 285.128,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61053,
    "c": 0.18774,
    "h": 317
  },
  "luminance": 0.2029
}

Semantic roles & 50–950 ramp

primary
#AF57CC
secondary
#B3D7A8
accent
#DD4B6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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