#AF57DA#AF57DA

#AF57DA is a mid, highly saturated purple. Relative luminance 0.210; OKLCH L 61.9% C 0.202 H 313.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF57DA
RGBrgb(175, 87, 218)
HSLhsl(280, 64%, 60%)
HSVhsv(280, 60%, 85%)
CMYKcmyk(19.7%, 60.1%, 0%, 14.5%)
CIE-LABlab(52.94, 56.87, -52.58)
CIE-LCHlch(52.94, 77.45, 317.24°)
OKLaboklab(61.87% 0.1377 -0.1476)
OKLCHoklch(61.87% 0.202 313)
XYZxyz(33.7401, 20.9932, 68.5908)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57DA #82DA57
analogous
#6D57DA #AF57DA #DA57C4
triadic
#AF57DA #DAAF57 #57DAAF
tetradic
#AF57DA #DA6D57 #82DA57 #57C4DA
square
#AF57DA #DA6D57 #82DA57 #57C4DA
split-complementary
#AF57DA #C4DA57 #57DA6D
monochromatic
#6F2196 #952CC8 #AF57DA #C789E5 #DFBBF0

Accessibility & contrast

On white

4.04
#AF57DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AF57DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57DA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57DA#FFFFFF#000000##000000
##AF57DA1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#297ADE
Deuteranopia (green-blind)
#5080D7
Tritanopia (blue-blind)
#AB6F90
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af57da;
/* rgb */ color: rgb(175, 87, 218);
/* oklch */ color: oklch(61.9% 0.202 313.0);
Tailwind
colors: {
  custom: {
    50: '#ca8be6',
    500: '#af57da',
    950: '#000000',
  },
}
SCSS
$custom: #af57da;
$custom-light: #ca8be6;
$custom-dark: #000000;
JSON
{
  "hex": "#af57da",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 218
  },
  "hsl": {
    "h": 280.305,
    "s": 63.902,
    "l": 59.804
  },
  "oklch": {
    "l": 0.6187,
    "c": 0.20192,
    "h": 313
  },
  "luminance": 0.20992
}

Semantic roles & 50–950 ramp

primary
#AF57DA
secondary
#BEE0AD
accent
#E74177
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57DA

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

Preview Lab → · Contrast checker → · Palette generator →

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