#AF56CC#AF56CC

#AF56CC is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.9% C 0.189 H 317.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF56CC
RGBrgb(175, 86, 204)
HSLhsl(285, 54%, 57%)
HSVhsv(285, 58%, 80%)
CMYKcmyk(14.2%, 57.8%, 0%, 20%)
CIE-LABlab(51.98, 54.45, -46.13)
CIE-LCHlch(51.98, 71.37, 319.73°)
OKLaboklab(60.92% 0.1386 -0.1288)
OKLCHoklch(60.92% 0.189 317.1)
XYZxyz(31.9045, 20.1303, 59.3200)
Luminance0.2013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56CC #73CC56
analogous
#7456CC #AF56CC #CC56AE
triadic
#AF56CC #CCAF56 #56CCAF
tetradic
#AF56CC #CC7456 #73CC56 #56AECC
square
#AF56CC #CC7456 #73CC56 #56AECC
split-complementary
#AF56CC #AECC56 #56CC74
monochromatic
#6B2781 #9235B0 #AF56CC #C585DA #DCB4E8

Accessibility & contrast

On white

4.18
#AF56CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AF56CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56CC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56CC#FFFFFF#000000##000000
##AF56CC1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3876D0
Deuteranopia (green-blind)
#597FC9
Tritanopia (blue-blind)
#AE6989
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af56cc;
/* rgb */ color: rgb(175, 86, 204);
/* oklch */ color: oklch(60.9% 0.189 317.1);
Tailwind
colors: {
  custom: {
    50: '#ca8adc',
    500: '#af56cc',
    950: '#000000',
  },
}
SCSS
$custom: #af56cc;
$custom-light: #ca8adc;
$custom-dark: #000000;
JSON
{
  "hex": "#af56cc",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 285.254,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60921,
    "c": 0.18924,
    "h": 317.1
  },
  "luminance": 0.20129
}

Semantic roles & 50–950 ramp

primary
#AF56CC
secondary
#B3D7A7
accent
#DD4B6F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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