#AF54CC#AF54CC

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

Color values

HEX#AF54CC
RGBrgb(175, 84, 204)
HSLhsl(286, 54%, 56%)
HSVhsv(286, 59%, 80%)
CMYKcmyk(14.2%, 58.8%, 0%, 20%)
CIE-LABlab(51.63, 55.42, -46.70)
CIE-LCHlch(51.63, 72.47, 319.88°)
OKLaboklab(60.66% 0.1412 -0.1304)
OKLCHoklch(60.66% 0.192 317.3)
XYZxyz(31.7470, 19.8154, 59.2675)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54CC #71CC54
analogous
#7354CC #AF54CC #CC54AD
triadic
#AF54CC #CCAF54 #54CCAF
tetradic
#AF54CC #CC7354 #71CC54 #54ADCC
square
#AF54CC #CC7354 #71CC54 #54ADCC
split-complementary
#AF54CC #ADCC54 #54CC73
monochromatic
#6A2680 #9134AF #AF54CC #C583DA #DBB2E8

Accessibility & contrast

On white

4.23
#AF54CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AF54CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54CC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54CC#FFFFFF#000000##000000
##AF54CC1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3475D0
Deuteranopia (green-blind)
#577EC9
Tritanopia (blue-blind)
#AE6888
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af54cc;
/* rgb */ color: rgb(175, 84, 204);
/* oklch */ color: oklch(60.7% 0.192 317.3);
Tailwind
colors: {
  custom: {
    50: '#ca89dc',
    500: '#af54cc',
    950: '#000000',
  },
}
SCSS
$custom: #af54cc;
$custom-light: #ca89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af54cc",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 285.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60661,
    "c": 0.19221,
    "h": 317.3
  },
  "luminance": 0.19814
}

Semantic roles & 50–950 ramp

primary
#AF54CC
secondary
#B1D7A5
accent
#DD4A6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54CC

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

Preview Lab → · Contrast checker → · Palette generator →

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