#AF57AF#AF57AF

#AF57AF is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.5% C 0.160 H 327.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF57AF
RGBrgb(175, 87, 175)
HSLhsl(300, 35%, 51%)
HSVhsv(300, 50%, 69%)
CMYKcmyk(0%, 50.3%, 0%, 31.4%)
CIE-LABlab(50.72, 48.35, -31.36)
CIE-LCHlch(50.72, 57.63, 327.03°)
OKLaboklab(59.52% 0.1344 -0.0861)
OKLCHoklch(59.52% 0.16 327.3)
XYZxyz(28.8248, 19.0271, 42.7034)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF57AF #57AF57
analogous
#8357AF #AF57AF #AF5783
triadic
#AF57AF #AFAF57 #57AFAF
tetradic
#AF57AF #AF8357 #57AF57 #5783AF
square
#AF57AF #AF8357 #57AF57 #5783AF
split-complementary
#AF57AF #83AF57 #57AF83
monochromatic
#5F2D5F #884188 #AF57AF #C380C3 #D6AAD6

Accessibility & contrast

On white

4.37
#AF57AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#AF57AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF57AF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF57AF#FFFFFF#000000##000000
##AF57AF1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F71B2
Deuteranopia (green-blind)
#697DAC
Tritanopia (blue-blind)
#B4617B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af57af;
/* rgb */ color: rgb(175, 87, 175);
/* oklch */ color: oklch(59.5% 0.160 327.3);
Tailwind
colors: {
  custom: {
    50: '#c98ac7',
    500: '#af57af',
    950: '#000000',
  },
}
SCSS
$custom: #af57af;
$custom-light: #c98ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#af57af",
  "rgb": {
    "r": 175,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5952,
    "c": 0.15957,
    "h": 327.3
  },
  "luminance": 0.19025
}

Semantic roles & 50–950 ramp

primary
#AF57AF
secondary
#9EC49E
accent
#CC5C5C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF57AF

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

Preview Lab → · Contrast checker → · Palette generator →

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