#AF57CE#AF57CE

#AF57CE is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.2% C 0.190 H 316.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF57CE
RGBrgb(175, 87, 206)
HSLhsl(284, 55%, 57%)
HSVhsv(284, 58%, 81%)
CMYKcmyk(15%, 57.8%, 0%, 19.2%)
CIE-LABlab(52.27, 54.37, -46.82)
CIE-LCHlch(52.27, 71.75, 319.27°)
OKLaboklab(61.17% 0.1375 -0.1308)
OKLCHoklch(61.17% 0.19 316.4)
XYZxyz(32.2263, 20.3877, 60.6182)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57CE #76CE57
analogous
#7457CE #AF57CE #CE57B1
triadic
#AF57CE #CEAF57 #57CEAF
tetradic
#AF57CE #CE7457 #76CE57 #57B1CE
square
#AF57CE #CE7457 #76CE57 #57B1CE
split-complementary
#AF57CE #B1CE57 #57CE74
monochromatic
#6C2784 #9234B3 #AF57CE #C686DC #DCB6EA

Accessibility & contrast

On white

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

On black

5.08
#AF57CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57CE
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57CE#FFFFFF#000000##000000
##AF57CE1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3877D2
Deuteranopia (green-blind)
#597FCB
Tritanopia (blue-blind)
#AE6B8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af57ce;
/* rgb */ color: rgb(175, 87, 206);
/* oklch */ color: oklch(61.2% 0.190 316.4);
Tailwind
colors: {
  custom: {
    50: '#ca8bdd',
    500: '#af57ce',
    950: '#000000',
  },
}
SCSS
$custom: #af57ce;
$custom-light: #ca8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af57ce",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 284.37,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61166,
    "c": 0.18975,
    "h": 316.4
  },
  "luminance": 0.20387
}

Semantic roles & 50–950 ramp

primary
#AF57CE
secondary
#B5D8A8
accent
#DE4A70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF57CE

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

Preview Lab → · Contrast checker → · Palette generator →

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