#AF55CA#AF55CA

#AF55CA is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.7% C 0.189 H 317.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF55CA
RGBrgb(175, 85, 202)
HSLhsl(286, 52%, 56%)
HSVhsv(286, 58%, 79%)
CMYKcmyk(13.4%, 57.9%, 0%, 20.8%)
CIE-LABlab(51.70, 54.53, -45.44)
CIE-LCHlch(51.70, 70.99, 320.20°)
OKLaboklab(60.68% 0.1398 -0.1268)
OKLCHoklch(60.68% 0.189 317.8)
XYZxyz(31.5869, 19.8764, 58.0383)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55CA #70CA55
analogous
#7555CA #AF55CA #CA55AB
triadic
#AF55CA #CAAF55 #55CAAF
tetradic
#AF55CA #CA7555 #70CA55 #55ABCA
square
#AF55CA #CA7555 #70CA55 #55ABCA
split-complementary
#AF55CA #ABCA55 #55CA75
monochromatic
#6A277D #9136AC #AF55CA #C584D9 #DBB2E7

Accessibility & contrast

On white

4.22
#AF55CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AF55CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55CA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55CA#FFFFFF#000000##000000
##AF55CA1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3875CE
Deuteranopia (green-blind)
#597EC7
Tritanopia (blue-blind)
#AE6888
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af55ca;
/* rgb */ color: rgb(175, 85, 202);
/* oklch */ color: oklch(60.7% 0.189 317.8);
Tailwind
colors: {
  custom: {
    50: '#ca89da',
    500: '#af55ca',
    950: '#000000',
  },
}
SCSS
$custom: #af55ca;
$custom-light: #ca89da;
$custom-dark: #000000;
JSON
{
  "hex": "#af55ca",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 202
  },
  "hsl": {
    "h": 286.154,
    "s": 52.466,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60676,
    "c": 0.18874,
    "h": 317.8
  },
  "luminance": 0.19875
}

Semantic roles & 50–950 ramp

primary
#AF55CA
secondary
#B0D5A5
accent
#DC4C6D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF55CA

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

Preview Lab → · Contrast checker → · Palette generator →

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