#AF55CC#AF55CC

#AF55CC is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.8% C 0.191 H 317.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF55CC
RGBrgb(175, 85, 204)
HSLhsl(285, 54%, 57%)
HSVhsv(285, 58%, 80%)
CMYKcmyk(14.2%, 58.3%, 0%, 20%)
CIE-LABlab(51.81, 54.94, -46.42)
CIE-LCHlch(51.81, 71.92, 319.81°)
OKLaboklab(60.79% 0.1399 -0.1296)
OKLCHoklch(60.79% 0.191 317.2)
XYZxyz(31.8252, 19.9718, 59.2935)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55CC #72CC55
analogous
#7455CC #AF55CC #CC55AE
triadic
#AF55CC #CCAF55 #55CCAF
tetradic
#AF55CC #CC7455 #72CC55 #55AECC
square
#AF55CC #CC7455 #72CC55 #55AECC
split-complementary
#AF55CC #AECC55 #55CC74
monochromatic
#6A2680 #9135AF #AF55CC #C584DA #DBB3E8

Accessibility & contrast

On white

4.20
#AF55CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AF55CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55CC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55CC#FFFFFF#000000##000000
##AF55CC1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3676D0
Deuteranopia (green-blind)
#587EC9
Tritanopia (blue-blind)
#AE6989
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af55cc;
/* rgb */ color: rgb(175, 85, 204);
/* oklch */ color: oklch(60.8% 0.191 317.2);
Tailwind
colors: {
  custom: {
    50: '#ca89dc',
    500: '#af55cc',
    950: '#000000',
  },
}
SCSS
$custom: #af55cc;
$custom-light: #ca89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af55cc",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 204
  },
  "hsl": {
    "h": 285.378,
    "s": 53.846,
    "l": 56.667
  },
  "oklch": {
    "l": 0.6079,
    "c": 0.19072,
    "h": 317.2
  },
  "luminance": 0.19971
}

Semantic roles & 50–950 ramp

primary
#AF55CC
secondary
#B2D7A6
accent
#DD4B6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF55CC

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

Preview Lab → · Contrast checker → · Palette generator →

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