#AF56CE#AF56CE

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

Color values

HEX#AF56CE
RGBrgb(175, 86, 206)
HSLhsl(285, 55%, 57%)
HSVhsv(285, 58%, 81%)
CMYKcmyk(15%, 58.3%, 0%, 19.2%)
CIE-LABlab(52.09, 54.86, -47.10)
CIE-LCHlch(52.09, 72.31, 319.35°)
OKLaboklab(61.04% 0.1387 -0.1316)
OKLCHoklch(61.04% 0.191 316.5)
XYZxyz(32.1459, 20.2269, 60.5914)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56CE #75CE56
analogous
#7356CE #AF56CE #CE56B1
triadic
#AF56CE #CEAF56 #56CEAF
tetradic
#AF56CE #CE7356 #75CE56 #56B1CE
square
#AF56CE #CE7356 #75CE56 #56B1CE
split-complementary
#AF56CE #B1CE56 #56CE73
monochromatic
#6B2683 #9234B3 #AF56CE #C585DC #DCB5EA

Accessibility & contrast

On white

4.16
#AF56CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AF56CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56CE
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56CE#FFFFFF#000000##000000
##AF56CE1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3677D2
Deuteranopia (green-blind)
#587FCB
Tritanopia (blue-blind)
#AE6A8A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af56ce;
/* rgb */ color: rgb(175, 86, 206);
/* oklch */ color: oklch(61.0% 0.191 316.5);
Tailwind
colors: {
  custom: {
    50: '#ca8add',
    500: '#af56ce',
    950: '#000000',
  },
}
SCSS
$custom: #af56ce;
$custom-light: #ca8add;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ce",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 284.5,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61035,
    "c": 0.19124,
    "h": 316.5
  },
  "luminance": 0.20226
}

Semantic roles & 50–950 ramp

primary
#AF56CE
secondary
#B4D8A8
accent
#DE4970
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF56CE

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

Preview Lab → · Contrast checker → · Palette generator →

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