#AF50CE#AF50CE

#AF50CE is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.3% C 0.200 H 317.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF50CE
RGBrgb(175, 80, 206)
HSLhsl(285, 56%, 56%)
HSVhsv(285, 61%, 81%)
CMYKcmyk(15%, 61.2%, 0%, 19.2%)
CIE-LABlab(51.05, 57.70, -48.77)
CIE-LCHlch(51.05, 75.55, 319.80°)
OKLaboklab(60.27% 0.1462 -0.1365)
OKLCHoklch(60.27% 0.2 317)
XYZxyz(31.6868, 19.3087, 60.4384)
Luminance0.1931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50CE #6FCE50
analogous
#7050CE #AF50CE #CE50AE
triadic
#AF50CE #CEAF50 #50CEAF
tetradic
#AF50CE #CE7050 #6FCE50 #50AECE
square
#AF50CE #CE7050 #6FCE50 #50AECE
split-complementary
#AF50CE #AECE50 #50CE70
monochromatic
#692480 #9131B0 #AF50CE #C580DB #DBB0E9

Accessibility & contrast

On white

4.32
#AF50CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AF50CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50CE
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50CE#FFFFFF#000000##000000
##AF50CE1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A74D2
Deuteranopia (green-blind)
#537CCB
Tritanopia (blue-blind)
#AE6688
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af50ce;
/* rgb */ color: rgb(175, 80, 206);
/* oklch */ color: oklch(60.3% 0.200 317.0);
Tailwind
colors: {
  custom: {
    50: '#ca86dd',
    500: '#af50ce',
    950: '#000000',
  },
}
SCSS
$custom: #af50ce;
$custom-light: #ca86dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af50ce",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 206
  },
  "hsl": {
    "h": 285.238,
    "s": 56.25,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60274,
    "c": 0.19996,
    "h": 317
  },
  "luminance": 0.19308
}

Semantic roles & 50–950 ramp

primary
#AF50CE
secondary
#B0D7A3
accent
#E0486D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF50CE

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

Preview Lab → · Contrast checker → · Palette generator →

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