#AF50C7#AF50C7

#AF50C7 is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.9% C 0.193 H 319.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AF50C7
RGBrgb(175, 80, 199)
HSLhsl(288, 52%, 55%)
HSVhsv(288, 60%, 78%)
CMYKcmyk(12.1%, 59.8%, 0%, 22%)
CIE-LABlab(50.66, 56.31, -45.37)
CIE-LCHlch(50.66, 72.31, 321.14°)
OKLaboklab(59.87% 0.146 -0.1265)
OKLCHoklch(59.87% 0.193 319.1)
XYZxyz(30.8553, 18.9761, 56.0592)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50C7 #68C750
analogous
#7450C7 #AF50C7 #C750A4
triadic
#AF50C7 #C7AF50 #50C7AF
tetradic
#AF50C7 #C77450 #68C750 #50A4C7
square
#AF50C7 #C77450 #68C750 #50A4C7
split-complementary
#AF50C7 #A4C750 #50C774
monochromatic
#662677 #8E35A5 #AF50C7 #C47ED6 #D9ADE5

Accessibility & contrast

On white

4.38
#AF50C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AF50C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50C7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50C7#FFFFFF#000000##000000
##AF50C71.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3372CB
Deuteranopia (green-blind)
#577CC4
Tritanopia (blue-blind)
#AF6384
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af50c7;
/* rgb */ color: rgb(175, 80, 199);
/* oklch */ color: oklch(59.9% 0.193 319.1);
Tailwind
colors: {
  custom: {
    50: '#ca86d8',
    500: '#af50c7',
    950: '#000000',
  },
}
SCSS
$custom: #af50c7;
$custom-light: #ca86d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af50c7",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 199
  },
  "hsl": {
    "h": 287.899,
    "s": 51.515,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59867,
    "c": 0.19319,
    "h": 319.1
  },
  "luminance": 0.18975
}

Semantic roles & 50–950 ramp

primary
#AF50C7
secondary
#AAD2A0
accent
#DB4D69
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #AF50C7

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

Preview Lab → · Contrast checker → · Palette generator →

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