#AF56CF#AF56CF

#AF56CF is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.1% C 0.192 H 316.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF56CF
RGBrgb(175, 86, 207)
HSLhsl(284, 56%, 57%)
HSVhsv(284, 58%, 81%)
CMYKcmyk(15.5%, 58.5%, 0%, 18.8%)
CIE-LABlab(52.15, 55.06, -47.59)
CIE-LCHlch(52.15, 72.78, 319.17°)
OKLaboklab(61.09% 0.1388 -0.1331)
OKLCHoklch(61.09% 0.192 316.2)
XYZxyz(32.2678, 20.2757, 61.2332)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56CF #76CF56
analogous
#7256CF #AF56CF #CF56B3
triadic
#AF56CF #CFAF56 #56CFAF
tetradic
#AF56CF #CF7256 #76CF56 #56B3CF
square
#AF56CF #CF7256 #76CF56 #56B3CF
split-complementary
#AF56CF #B3CF56 #56CF72
monochromatic
#6C2685 #9233B5 #AF56CF #C686DD #DCB5EA

Accessibility & contrast

On white

4.15
#AF56CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AF56CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56CF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56CF#FFFFFF#000000##000000
##AF56CF1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3577D3
Deuteranopia (green-blind)
#577FCC
Tritanopia (blue-blind)
#AD6A8A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af56cf;
/* rgb */ color: rgb(175, 86, 207);
/* oklch */ color: oklch(61.1% 0.192 316.2);
Tailwind
colors: {
  custom: {
    50: '#ca8ade',
    500: '#af56cf',
    950: '#000000',
  },
}
SCSS
$custom: #af56cf;
$custom-light: #ca8ade;
$custom-dark: #000000;
JSON
{
  "hex": "#af56cf",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 284.132,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61093,
    "c": 0.19225,
    "h": 316.2
  },
  "luminance": 0.20275
}

Semantic roles & 50–950 ramp

primary
#AF56CF
secondary
#B5D9A8
accent
#DF4970
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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