#AF50CC#AF50CC

#AF50CC is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.2% C 0.198 H 317.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF50CC
RGBrgb(175, 80, 204)
HSLhsl(286, 55%, 56%)
HSVhsv(286, 61%, 80%)
CMYKcmyk(14.2%, 60.8%, 0%, 20%)
CIE-LABlab(50.93, 57.30, -47.80)
CIE-LCHlch(50.93, 74.62, 320.17°)
OKLaboklab(60.16% 0.1461 -0.1336)
OKLCHoklch(60.16% 0.198 317.6)
XYZxyz(31.4454, 19.2121, 59.1669)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50CC #6DCC50
analogous
#7150CC #AF50CC #CC50AB
triadic
#AF50CC #CCAF50 #50CCAF
tetradic
#AF50CC #CC7150 #6DCC50 #50ABCC
square
#AF50CC #CC7150 #6DCC50 #50ABCC
split-complementary
#AF50CC #ABCC50 #50CC71
monochromatic
#68247D #9032AD #AF50CC #C57FDA #DAAFE8

Accessibility & contrast

On white

4.34
#AF50CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AF50CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50CC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50CC#FFFFFF#000000##000000
##AF50CC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D73D0
Deuteranopia (green-blind)
#547CC9
Tritanopia (blue-blind)
#AE6587
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af50cc;
/* rgb */ color: rgb(175, 80, 204);
/* oklch */ color: oklch(60.2% 0.198 317.6);
Tailwind
colors: {
  custom: {
    50: '#ca86dc',
    500: '#af50cc',
    950: '#000000',
  },
}
SCSS
$custom: #af50cc;
$custom-light: #ca86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af50cc",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 204
  },
  "hsl": {
    "h": 285.968,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60156,
    "c": 0.19802,
    "h": 317.6
  },
  "luminance": 0.19211
}

Semantic roles & 50–950 ramp

primary
#AF50CC
secondary
#AED6A2
accent
#DE4A6C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF50CC

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

Preview Lab → · Contrast checker → · Palette generator →

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