#AF57BB#AF57BB

#AF57BB is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.1% C 0.171 H 322.7°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF57BB
RGBrgb(175, 87, 187)
HSLhsl(293, 42%, 54%)
HSVhsv(293, 53%, 73%)
CMYKcmyk(6.4%, 53.5%, 0%, 26.7%)
CIE-LABlab(51.29, 50.60, -37.44)
CIE-LCHlch(51.29, 62.95, 323.50°)
OKLaboklab(60.13% 0.136 -0.1036)
OKLCHoklch(60.13% 0.171 322.7)
XYZxyz(30.0561, 19.5196, 49.1886)
Luminance0.1952 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57BB #63BB57
analogous
#7D57BB #AF57BB #BB5795
triadic
#AF57BB #BBAF57 #57BBAF
tetradic
#AF57BB #BB7D57 #63BB57 #5795BB
square
#AF57BB #BB7D57 #63BB57 #5795BB
split-complementary
#AF57BB #95BB57 #57BB7D
monochromatic
#642C6C #8D3D97 #AF57BB #C483CD #D8AEDE

Accessibility & contrast

On white

4.28
#AF57BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AF57BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57BB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57BB#FFFFFF#000000##000000
##AF57BB1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4774BE
Deuteranopia (green-blind)
#647EB8
Tritanopia (blue-blind)
#B16481
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af57bb;
/* rgb */ color: rgb(175, 87, 187);
/* oklch */ color: oklch(60.1% 0.171 322.7);
Tailwind
colors: {
  custom: {
    50: '#c98ad0',
    500: '#af57bb',
    950: '#000000',
  },
}
SCSS
$custom: #af57bb;
$custom-light: #c98ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#af57bb",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 292.8,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60127,
    "c": 0.17093,
    "h": 322.7
  },
  "luminance": 0.19518
}

Semantic roles & 50–950 ramp

primary
#AF57BB
secondary
#A7CCA2
accent
#D25665
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF57BB

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

Preview Lab → · Contrast checker → · Palette generator →

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