#AF57DD#AF57DD

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

Color values

HEX#AF57DD
RGBrgb(175, 87, 221)
HSLhsl(279, 66%, 60%)
HSVhsv(279, 61%, 87%)
CMYKcmyk(20.8%, 60.6%, 0%, 13.3%)
CIE-LABlab(53.12, 57.50, -54.00)
CIE-LCHlch(53.12, 78.88, 316.80°)
OKLaboklab(62.05% 0.1377 -0.1518)
OKLCHoklch(62.05% 0.205 312.2)
XYZxyz(34.1362, 21.1517, 70.6770)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57DD #85DD57
analogous
#6C57DD #AF57DD #DD57C8
triadic
#AF57DD #DDAF57 #57DDAF
tetradic
#AF57DD #DD6C57 #85DD57 #57C8DD
square
#AF57DD #DD6C57 #85DD57 #57C8DD
split-complementary
#AF57DD #C8DD57 #57DD6C
monochromatic
#701F9A #952ACD #AF57DD #C78AE7 #DFBDF2

Accessibility & contrast

On white

4.02
#AF57DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AF57DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57DD
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57DD#FFFFFF#000000##000000
##AF57DD1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#247AE1
Deuteranopia (green-blind)
#4D81DA
Tritanopia (blue-blind)
#AA7092
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af57dd;
/* rgb */ color: rgb(175, 87, 221);
/* oklch */ color: oklch(62.1% 0.205 312.2);
Tailwind
colors: {
  custom: {
    50: '#ca8be8',
    500: '#af57dd',
    950: '#000000',
  },
}
SCSS
$custom: #af57dd;
$custom-light: #ca8be8;
$custom-dark: #000000;
JSON
{
  "hex": "#af57dd",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 221
  },
  "hsl": {
    "h": 279.403,
    "s": 66.337,
    "l": 60.392
  },
  "oklch": {
    "l": 0.62052,
    "c": 0.20498,
    "h": 312.2
  },
  "luminance": 0.21151
}

Semantic roles & 50–950 ramp

primary
#AF57DD
secondary
#C0E1AE
accent
#CE1756
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF57DD

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

Preview Lab → · Contrast checker → · Palette generator →

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