#AF57CF#AF57CF

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

Color values

HEX#AF57CF
RGBrgb(175, 87, 207)
HSLhsl(284, 56%, 58%)
HSVhsv(284, 58%, 81%)
CMYKcmyk(15.5%, 58%, 0%, 18.8%)
CIE-LABlab(52.33, 54.58, -47.30)
CIE-LCHlch(52.33, 72.22, 319.08°)
OKLaboklab(61.22% 0.1375 -0.1322)
OKLCHoklch(61.22% 0.191 316.1)
XYZxyz(32.3482, 20.4365, 61.2600)
Luminance0.2044 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57CF #77CF57
analogous
#7357CF #AF57CF #CF57B3
triadic
#AF57CF #CFAF57 #57CFAF
tetradic
#AF57CF #CF7357 #77CF57 #57B3CF
square
#AF57CF #CF7357 #77CF57 #57B3CF
split-complementary
#AF57CF #B3CF57 #57CF73
monochromatic
#6C2685 #9334B5 #AF57CF #C687DD #DCB6EA

Accessibility & contrast

On white

4.13
#AF57CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AF57CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57CF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57CF#FFFFFF#000000##000000
##AF57CF1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3777D3
Deuteranopia (green-blind)
#587FCC
Tritanopia (blue-blind)
#AD6B8B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af57cf;
/* rgb */ color: rgb(175, 87, 207);
/* oklch */ color: oklch(61.2% 0.191 316.1);
Tailwind
colors: {
  custom: {
    50: '#ca8bde',
    500: '#af57cf',
    950: '#000000',
  },
}
SCSS
$custom: #af57cf;
$custom-light: #ca8bde;
$custom-dark: #000000;
JSON
{
  "hex": "#af57cf",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 284,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61224,
    "c": 0.19076,
    "h": 316.1
  },
  "luminance": 0.20435
}

Semantic roles & 50–950 ramp

primary
#AF57CF
secondary
#B6D9A9
accent
#DF4971
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF57CF

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

Preview Lab → · Contrast checker → · Palette generator →

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