#AF50C0#AF50C0

#AF50C0 is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.5% C 0.187 H 321.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF50C0
RGBrgb(175, 80, 192)
HSLhsl(291, 47%, 53%)
HSVhsv(291, 58%, 75%)
CMYKcmyk(8.9%, 58.3%, 0%, 24.7%)
CIE-LABlab(50.29, 54.95, -41.92)
CIE-LCHlch(50.29, 69.12, 322.66°)
OKLaboklab(59.47% 0.1456 -0.1165)
OKLCHoklch(59.47% 0.187 321.3)
XYZxyz(30.0612, 18.6585, 51.8769)
Luminance0.1866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50C0 #61C050
analogous
#7750C0 #AF50C0 #C05099
triadic
#AF50C0 #C0AF50 #50C0AF
tetradic
#AF50C0 #C07750 #61C050 #5099C0
square
#AF50C0 #C07750 #61C050 #5099C0
split-complementary
#AF50C0 #99C050 #50C077
monochromatic
#63286E #8C389B #AF50C0 #C47DD0 #D8AAE0

Accessibility & contrast

On white

4.44
#AF50C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF50C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50C0
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50C0#FFFFFF#000000##000000
##AF50C01.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A71C4
Deuteranopia (green-blind)
#5C7BBD
Tritanopia (blue-blind)
#B16180
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af50c0;
/* rgb */ color: rgb(175, 80, 192);
/* oklch */ color: oklch(59.5% 0.187 321.3);
Tailwind
colors: {
  custom: {
    50: '#ca86d3',
    500: '#af50c0',
    950: '#000000',
  },
}
SCSS
$custom: #af50c0;
$custom-light: #ca86d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af50c0",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 192
  },
  "hsl": {
    "h": 290.893,
    "s": 47.059,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59473,
    "c": 0.18652,
    "h": 321.3
  },
  "luminance": 0.18657
}

Semantic roles & 50–950 ramp

primary
#AF50C0
secondary
#A5CE9E
accent
#D75165
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #AF50C0

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

Preview Lab → · Contrast checker → · Palette generator →

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