#AF57CA#AF57CA

#AF57CA is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.9% C 0.186 H 317.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF57CA
RGBrgb(175, 87, 202)
HSLhsl(286, 52%, 57%)
HSVhsv(286, 57%, 79%)
CMYKcmyk(13.4%, 56.9%, 0%, 20.8%)
CIE-LABlab(52.06, 53.56, -44.87)
CIE-LCHlch(52.06, 69.87, 320.05°)
OKLaboklab(60.94% 0.1373 -0.1251)
OKLCHoklch(60.94% 0.186 317.6)
XYZxyz(31.7466, 20.1958, 58.0916)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57CA #72CA57
analogous
#7657CA #AF57CA #CA57AC
triadic
#AF57CA #CAAF57 #57CAAF
tetradic
#AF57CA #CA7657 #72CA57 #57ACCA
square
#AF57CA #CA7657 #72CA57 #57ACCA
split-complementary
#AF57CA #ACCA57 #57CA76
monochromatic
#6A287F #9137AD #AF57CA #C586D9 #DBB4E7

Accessibility & contrast

On white

4.17
#AF57CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AF57CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57CA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57CA#FFFFFF#000000##000000
##AF57CA1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C76CE
Deuteranopia (green-blind)
#5B7FC7
Tritanopia (blue-blind)
#AE6988
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af57ca;
/* rgb */ color: rgb(175, 87, 202);
/* oklch */ color: oklch(60.9% 0.186 317.6);
Tailwind
colors: {
  custom: {
    50: '#c98bda',
    500: '#af57ca',
    950: '#000000',
  },
}
SCSS
$custom: #af57ca;
$custom-light: #c98bda;
$custom-dark: #000000;
JSON
{
  "hex": "#af57ca",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 285.913,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.18574,
    "h": 317.6
  },
  "luminance": 0.20195
}

Semantic roles & 50–950 ramp

primary
#AF57CA
secondary
#B2D6A7
accent
#DB4C6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF57CA

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

Preview Lab → · Contrast checker → · Palette generator →

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