#AF57DB#AF57DB

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

Color values

HEX#AF57DB
RGBrgb(175, 87, 219)
HSLhsl(280, 65%, 60%)
HSVhsv(280, 60%, 86%)
CMYKcmyk(20.1%, 60.3%, 0%, 14.1%)
CIE-LABlab(53.00, 57.08, -53.06)
CIE-LCHlch(53.00, 77.93, 317.09°)
OKLaboklab(61.93% 0.1377 -0.149)
OKLCHoklch(61.93% 0.203 312.7)
XYZxyz(33.8713, 21.0457, 69.2821)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57DB #83DB57
analogous
#6D57DB #AF57DB #DB57C5
triadic
#AF57DB #DBAF57 #57DBAF
tetradic
#AF57DB #DB6D57 #83DB57 #57C5DB
square
#AF57DB #DB6D57 #83DB57 #57C5DB
split-complementary
#AF57DB #C5DB57 #57DB6D
monochromatic
#702097 #952BCA #AF57DB #C789E6 #DFBCF1

Accessibility & contrast

On white

4.03
#AF57DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AF57DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57DB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57DB#FFFFFF#000000##000000
##AF57DB1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#277ADF
Deuteranopia (green-blind)
#4F81D8
Tritanopia (blue-blind)
#AA6F91
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af57db;
/* rgb */ color: rgb(175, 87, 219);
/* oklch */ color: oklch(61.9% 0.203 312.7);
Tailwind
colors: {
  custom: {
    50: '#ca8be7',
    500: '#af57db',
    950: '#000000',
  },
}
SCSS
$custom: #af57db;
$custom-light: #ca8be7;
$custom-dark: #000000;
JSON
{
  "hex": "#af57db",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 280,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.6193,
    "c": 0.20293,
    "h": 312.7
  },
  "luminance": 0.21045
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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