#AF57DE#AF57DE

#AF57DE is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.1% C 0.206 H 312.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF57DE
RGBrgb(175, 87, 222)
HSLhsl(279, 67%, 61%)
HSVhsv(279, 61%, 87%)
CMYKcmyk(21.2%, 60.8%, 0%, 12.9%)
CIE-LABlab(53.17, 57.71, -54.48)
CIE-LCHlch(53.17, 79.36, 316.65°)
OKLaboklab(62.11% 0.1377 -0.1532)
OKLCHoklch(62.11% 0.206 312)
XYZxyz(34.2698, 21.2051, 71.3808)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57DE #86DE57
analogous
#6B57DE #AF57DE #DE57C9
triadic
#AF57DE #DEAF57 #57DEAF
tetradic
#AF57DE #DE6B57 #86DE57 #57C9DE
square
#AF57DE #DE6B57 #86DE57 #57C9DE
split-complementary
#AF57DE #C9DE57 #57DE6B
monochromatic
#701F9C #9529CF #AF57DE #C78AE8 #E0BDF2

Accessibility & contrast

On white

4.01
#AF57DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AF57DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57DE
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57DE#FFFFFF#000000##000000
##AF57DE1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#227BE2
Deuteranopia (green-blind)
#4C81DB
Tritanopia (blue-blind)
#AA7093
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af57de;
/* rgb */ color: rgb(175, 87, 222);
/* oklch */ color: oklch(62.1% 0.206 312.0);
Tailwind
colors: {
  custom: {
    50: '#ca8be9',
    500: '#af57de',
    950: '#000000',
  },
}
SCSS
$custom: #af57de;
$custom-light: #ca8be9;
$custom-dark: #000000;
JSON
{
  "hex": "#af57de",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 222
  },
  "hsl": {
    "h": 279.111,
    "s": 67.164,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62113,
    "c": 0.206,
    "h": 312
  },
  "luminance": 0.21204
}

Semantic roles & 50–950 ramp

primary
#AF57DE
secondary
#C1E2AF
accent
#CF1657
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57DE

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

Preview Lab → · Contrast checker → · Palette generator →

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