#AF50C8#AF50C8

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

Color values

HEX#AF50C8
RGBrgb(175, 80, 200)
HSLhsl(288, 52%, 55%)
HSVhsv(288, 60%, 78%)
CMYKcmyk(12.5%, 60%, 0%, 21.6%)
CIE-LABlab(50.71, 56.51, -45.86)
CIE-LCHlch(50.71, 72.77, 320.94°)
OKLaboklab(59.92% 0.146 -0.128)
OKLCHoklch(59.92% 0.194 318.8)
XYZxyz(30.9718, 19.0227, 56.6727)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50C8 #69C850
analogous
#7350C8 #AF50C8 #C850A5
triadic
#AF50C8 #C8AF50 #50C8AF
tetradic
#AF50C8 #C87350 #69C850 #50A5C8
square
#AF50C8 #C87350 #69C850 #50A5C8
split-complementary
#AF50C8 #A5C850 #50C873
monochromatic
#672678 #8F34A6 #AF50C8 #C47FD7 #DAADE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF50C8#FFFFFF#000000##000000
##AF50C81.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3272CC
Deuteranopia (green-blind)
#577CC5
Tritanopia (blue-blind)
#AF6485
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af50c8;
/* rgb */ color: rgb(175, 80, 200);
/* oklch */ color: oklch(59.9% 0.194 318.8);
Tailwind
colors: {
  custom: {
    50: '#ca86d9',
    500: '#af50c8',
    950: '#000000',
  },
}
SCSS
$custom: #af50c8;
$custom-light: #ca86d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af50c8",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 200
  },
  "hsl": {
    "h": 287.5,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59924,
    "c": 0.19416,
    "h": 318.8
  },
  "luminance": 0.19021
}

Semantic roles & 50–950 ramp

primary
#AF50C8
secondary
#ABD3A1
accent
#DC4C6A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF50C8

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

Preview Lab → · Contrast checker → · Palette generator →

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