#AF50C5#AF50C5

#AF50C5 is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.8% C 0.191 H 319.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF50C5
RGBrgb(175, 80, 197)
HSLhsl(289, 50%, 54%)
HSVhsv(289, 59%, 77%)
CMYKcmyk(11.2%, 59.4%, 0%, 22.7%)
CIE-LABlab(50.55, 55.92, -44.39)
CIE-LCHlch(50.55, 71.40, 321.56°)
OKLaboklab(59.75% 0.1459 -0.1237)
OKLCHoklch(59.75% 0.191 319.7)
XYZxyz(30.6246, 18.8838, 54.8443)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50C5 #66C550
analogous
#7550C5 #AF50C5 #C550A1
triadic
#AF50C5 #C5AF50 #50C5AF
tetradic
#AF50C5 #C57550 #66C550 #50A1C5
square
#AF50C5 #C57550 #66C550 #50A1C5
split-complementary
#AF50C5 #A1C550 #50C575
monochromatic
#662674 #8E36A2 #AF50C5 #C47ED4 #D9ACE3

Accessibility & contrast

On white

4.40
#AF50C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AF50C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50C5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50C5#FFFFFF#000000##000000
##AF50C51.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3572C9
Deuteranopia (green-blind)
#597CC2
Tritanopia (blue-blind)
#B06383
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af50c5;
/* rgb */ color: rgb(175, 80, 197);
/* oklch */ color: oklch(59.8% 0.191 319.7);
Tailwind
colors: {
  custom: {
    50: '#ca86d7',
    500: '#af50c5',
    950: '#000000',
  },
}
SCSS
$custom: #af50c5;
$custom-light: #ca86d7;
$custom-dark: #000000;
JSON
{
  "hex": "#af50c5",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 197
  },
  "hsl": {
    "h": 288.718,
    "s": 50.215,
    "l": 54.314
  },
  "oklch": {
    "l": 0.59753,
    "c": 0.19127,
    "h": 319.7
  },
  "luminance": 0.18882
}

Semantic roles & 50–950 ramp

primary
#AF50C5
secondary
#A9D1A0
accent
#DA4E68
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #AF50C5

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

Preview Lab → · Contrast checker → · Palette generator →

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