#AF57CB#AF57CB

#AF57CB is a mid, vivid purple. Relative luminance 0.202; OKLCH L 61.0% C 0.187 H 317.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF57CB
RGBrgb(175, 87, 203)
HSLhsl(286, 53%, 57%)
HSVhsv(286, 57%, 80%)
CMYKcmyk(13.8%, 57.1%, 0%, 20.4%)
CIE-LABlab(52.11, 53.76, -45.36)
CIE-LCHlch(52.11, 70.34, 319.85°)
OKLaboklab(61% 0.1373 -0.1266)
OKLCHoklch(61% 0.187 317.3)
XYZxyz(31.8653, 20.2433, 58.7171)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57CB #73CB57
analogous
#7557CB #AF57CB #CB57AD
triadic
#AF57CB #CBAF57 #57CBAF
tetradic
#AF57CB #CB7557 #73CB57 #57ADCB
square
#AF57CB #CB7557 #73CB57 #57ADCB
split-complementary
#AF57CB #ADCB57 #57CB75
monochromatic
#6B2880 #9236AF #AF57CB #C586D9 #DCB4E8

Accessibility & contrast

On white

4.16
#AF57CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AF57CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57CB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57CB#FFFFFF#000000##000000
##AF57CB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B77CF
Deuteranopia (green-blind)
#5A7FC8
Tritanopia (blue-blind)
#AE6A89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af57cb;
/* rgb */ color: rgb(175, 87, 203);
/* oklch */ color: oklch(61.0% 0.187 317.3);
Tailwind
colors: {
  custom: {
    50: '#ca8bdb',
    500: '#af57cb',
    950: '#000000',
  },
}
SCSS
$custom: #af57cb;
$custom-light: #ca8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#af57cb",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 285.517,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60996,
    "c": 0.18673,
    "h": 317.3
  },
  "luminance": 0.20242
}

Semantic roles & 50–950 ramp

primary
#AF57CB
secondary
#B3D7A7
accent
#DC4C6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF57CB

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

Preview Lab → · Contrast checker → · Palette generator →

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