#AF56CD#AF56CD

#AF56CD is a mid, vivid purple. Relative luminance 0.202; OKLCH L 61.0% C 0.190 H 316.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF56CD
RGBrgb(175, 86, 205)
HSLhsl(285, 54%, 57%)
HSVhsv(285, 58%, 80%)
CMYKcmyk(14.6%, 58%, 0%, 19.6%)
CIE-LABlab(52.04, 54.66, -46.62)
CIE-LCHlch(52.04, 71.84, 319.54°)
OKLaboklab(60.98% 0.1387 -0.1302)
OKLCHoklch(60.98% 0.19 316.8)
XYZxyz(32.0248, 20.1785, 59.9537)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56CD #74CD56
analogous
#7456CD #AF56CD #CD56B0
triadic
#AF56CD #CDAF56 #56CDAF
tetradic
#AF56CD #CD7456 #74CD56 #56B0CD
square
#AF56CD #CD7456 #74CD56 #56B0CD
split-complementary
#AF56CD #B0CD56 #56CD74
monochromatic
#6B2682 #9234B1 #AF56CD #C585DB #DCB4E9

Accessibility & contrast

On white

4.17
#AF56CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AF56CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56CD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56CD#FFFFFF#000000##000000
##AF56CD1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3777D1
Deuteranopia (green-blind)
#587FCA
Tritanopia (blue-blind)
#AE6A89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af56cd;
/* rgb */ color: rgb(175, 86, 205);
/* oklch */ color: oklch(61.0% 0.190 316.8);
Tailwind
colors: {
  custom: {
    50: '#ca8add',
    500: '#af56cd',
    950: '#000000',
  },
}
SCSS
$custom: #af56cd;
$custom-light: #ca8add;
$custom-dark: #000000;
JSON
{
  "hex": "#af56cd",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 284.874,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60978,
    "c": 0.19024,
    "h": 316.8
  },
  "luminance": 0.20177
}

Semantic roles & 50–950 ramp

primary
#AF56CD
secondary
#B3D8A7
accent
#DE4A6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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