#AF57CD#AF57CD

#AF57CD is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.1% C 0.189 H 316.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AF57CD
RGBrgb(175, 87, 205)
HSLhsl(285, 54%, 57%)
HSVhsv(285, 58%, 80%)
CMYKcmyk(14.6%, 57.6%, 0%, 19.6%)
CIE-LABlab(52.22, 54.17, -46.33)
CIE-LCHlch(52.22, 71.28, 319.46°)
OKLaboklab(61.11% 0.1374 -0.1294)
OKLCHoklch(61.11% 0.189 316.7)
XYZxyz(32.1052, 20.3393, 59.9805)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57CD #75CD57
analogous
#7457CD #AF57CD #CD57B0
triadic
#AF57CD #CDAF57 #57CDAF
tetradic
#AF57CD #CD7457 #75CD57 #57B0CD
square
#AF57CD #CD7457 #75CD57 #57B0CD
split-complementary
#AF57CD #B0CD57 #57CD74
monochromatic
#6B2783 #9235B2 #AF57CD #C586DB #DCB5E9

Accessibility & contrast

On white

4.14
#AF57CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AF57CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57CD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57CD#FFFFFF#000000##000000
##AF57CD1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3977D1
Deuteranopia (green-blind)
#597FCA
Tritanopia (blue-blind)
#AE6A8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af57cd;
/* rgb */ color: rgb(175, 87, 205);
/* oklch */ color: oklch(61.1% 0.189 316.7);
Tailwind
colors: {
  custom: {
    50: '#ca8bdd',
    500: '#af57cd',
    950: '#000000',
  },
}
SCSS
$custom: #af57cd;
$custom-light: #ca8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af57cd",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 284.746,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61109,
    "c": 0.18874,
    "h": 316.7
  },
  "luminance": 0.20338
}

Semantic roles & 50–950 ramp

primary
#AF57CD
secondary
#B4D8A8
accent
#DD4A70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF57CD

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

Preview Lab → · Contrast checker → · Palette generator →

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