#AF57DF#AF57DF

#AF57DF is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.2% C 0.207 H 311.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AF57DF
RGBrgb(175, 87, 223)
HSLhsl(279, 68%, 61%)
HSVhsv(279, 61%, 87%)
CMYKcmyk(21.5%, 61%, 0%, 12.5%)
CIE-LABlab(53.23, 57.92, -54.95)
CIE-LCHlch(53.23, 79.84, 316.51°)
OKLaboklab(62.17% 0.1377 -0.1546)
OKLCHoklch(62.17% 0.207 311.7)
XYZxyz(34.4043, 21.2589, 72.0887)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57DF #87DF57
analogous
#6B57DF #AF57DF #DF57CB
triadic
#AF57DF #DFAF57 #57DFAF
tetradic
#AF57DF #DF6B57 #87DF57 #57CBDF
square
#AF57DF #DF6B57 #87DF57 #57CBDF
split-complementary
#AF57DF #CBDF57 #57DF6B
monochromatic
#711E9E #9528D1 #AF57DF #C78AE9 #E0BEF3

Accessibility & contrast

On white

4.00
#AF57DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#AF57DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57DF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57DF#FFFFFF#000000##000000
##AF57DF1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#207BE3
Deuteranopia (green-blind)
#4B81DC
Tritanopia (blue-blind)
#A97193
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af57df;
/* rgb */ color: rgb(175, 87, 223);
/* oklch */ color: oklch(62.2% 0.207 311.7);
Tailwind
colors: {
  custom: {
    50: '#ca8bea',
    500: '#af57df',
    950: '#000000',
  },
}
SCSS
$custom: #af57df;
$custom-light: #ca8bea;
$custom-dark: #000000;
JSON
{
  "hex": "#af57df",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 278.824,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62174,
    "c": 0.20702,
    "h": 311.7
  },
  "luminance": 0.21258
}

Semantic roles & 50–950 ramp

primary
#AF57DF
secondary
#C1E3AF
accent
#D01657
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57DF

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

Preview Lab → · Contrast checker → · Palette generator →

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