#AF57C8#AF57C8

#AF57C8 is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.8% C 0.184 H 318.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF57C8
RGBrgb(175, 87, 200)
HSLhsl(287, 51%, 56%)
HSVhsv(287, 57%, 78%)
CMYKcmyk(12.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(51.95, 53.16, -43.89)
CIE-LCHlch(51.95, 68.94, 320.46°)
OKLaboklab(60.83% 0.1371 -0.1223)
OKLCHoklch(60.83% 0.184 318.3)
XYZxyz(31.5113, 20.1017, 56.8525)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57C8 #70C857
analogous
#7757C8 #AF57C8 #C857A9
triadic
#AF57C8 #C8AF57 #57C8AF
tetradic
#AF57C8 #C87757 #70C857 #57A9C8
square
#AF57C8 #C87757 #70C857 #57A9C8
split-complementary
#AF57C8 #A9C857 #57C877
monochromatic
#6A297C #9138AA #AF57C8 #C585D7 #DBB3E6

Accessibility & contrast

On white

4.18
#AF57C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#AF57C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57C8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57C8#FFFFFF#000000##000000
##AF57C81.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D76CC
Deuteranopia (green-blind)
#5C7FC5
Tritanopia (blue-blind)
#AF6987
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af57c8;
/* rgb */ color: rgb(175, 87, 200);
/* oklch */ color: oklch(60.8% 0.184 318.3);
Tailwind
colors: {
  custom: {
    50: '#c98ad9',
    500: '#af57c8',
    950: '#000000',
  },
}
SCSS
$custom: #af57c8;
$custom-light: #c98ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#af57c8",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 286.726,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60828,
    "c": 0.18373,
    "h": 318.3
  },
  "luminance": 0.201
}

Semantic roles & 50–950 ramp

primary
#AF57C8
secondary
#B0D5A6
accent
#DA4E6D
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF57C8

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

Preview Lab → · Contrast checker → · Palette generator →

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