#AF57BF#AF57BF

#AF57BF is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.3% C 0.175 H 321.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF57BF
RGBrgb(175, 87, 191)
HSLhsl(291, 45%, 55%)
HSVhsv(291, 54%, 75%)
CMYKcmyk(8.4%, 54.5%, 0%, 25.1%)
CIE-LABlab(51.49, 51.38, -39.44)
CIE-LCHlch(51.49, 64.77, 322.49°)
OKLaboklab(60.34% 0.1364 -0.1094)
OKLCHoklch(60.34% 0.175 321.3)
XYZxyz(30.4903, 19.6933, 51.4752)
Luminance0.1969 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57BF #67BF57
analogous
#7B57BF #AF57BF #BF579B
triadic
#AF57BF #BFAF57 #57BFAF
tetradic
#AF57BF #BF7B57 #67BF57 #579BBF
square
#AF57BF #BF7B57 #67BF57 #579BBF
split-complementary
#AF57BF #9BBF57 #57BF7B
monochromatic
#662B71 #8E3C9D #AF57BF #C483D0 #D9B0E1

Accessibility & contrast

On white

4.25
#AF57BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AF57BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57BF
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57BF#FFFFFF#000000##000000
##AF57BF1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4574C2
Deuteranopia (green-blind)
#617EBC
Tritanopia (blue-blind)
#B16683
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af57bf;
/* rgb */ color: rgb(175, 87, 191);
/* oklch */ color: oklch(60.3% 0.175 321.3);
Tailwind
colors: {
  custom: {
    50: '#c98ad3',
    500: '#af57bf',
    950: '#000000',
  },
}
SCSS
$custom: #af57bf;
$custom-light: #c98ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#af57bf",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 290.769,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60338,
    "c": 0.17483,
    "h": 321.3
  },
  "luminance": 0.19692
}

Semantic roles & 50–950 ramp

primary
#AF57BF
secondary
#AACFA3
accent
#D55367
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF57BF

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

Preview Lab → · Contrast checker → · Palette generator →

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