#AF57BE#AF57BE

#AF57BE is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.3% C 0.174 H 321.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF57BE
RGBrgb(175, 87, 190)
HSLhsl(291, 44%, 54%)
HSVhsv(291, 54%, 75%)
CMYKcmyk(7.9%, 54.2%, 0%, 25.5%)
CIE-LABlab(51.44, 51.18, -38.95)
CIE-LCHlch(51.44, 64.31, 322.73°)
OKLaboklab(60.29% 0.1363 -0.1079)
OKLCHoklch(60.29% 0.174 321.6)
XYZxyz(30.3806, 19.6494, 50.8977)
Luminance0.1965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57BE #66BE57
analogous
#7C57BE #AF57BE #BE579A
triadic
#AF57BE #BEAF57 #57BEAF
tetradic
#AF57BE #BE7C57 #66BE57 #579ABE
square
#AF57BE #BE7C57 #66BE57 #579ABE
split-complementary
#AF57BE #9ABE57 #57BE7C
monochromatic
#662B6F #8E3C9C #AF57BE #C483CF #D9AFE0

Accessibility & contrast

On white

4.26
#AF57BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF57BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57BE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57BE#FFFFFF#000000##000000
##AF57BE1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4574C1
Deuteranopia (green-blind)
#627EBB
Tritanopia (blue-blind)
#B16582
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af57be;
/* rgb */ color: rgb(175, 87, 190);
/* oklch */ color: oklch(60.3% 0.174 321.6);
Tailwind
colors: {
  custom: {
    50: '#c98ad2',
    500: '#af57be',
    950: '#000000',
  },
}
SCSS
$custom: #af57be;
$custom-light: #c98ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#af57be",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 291.262,
    "s": 44.206,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60285,
    "c": 0.17386,
    "h": 321.6
  },
  "luminance": 0.19648
}

Semantic roles & 50–950 ramp

primary
#AF57BE
secondary
#A9CEA3
accent
#D45467
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF57BE

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

Preview Lab → · Contrast checker → · Palette generator →

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