#AF56DC#AF56DC

#AF56DC is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.205 H 312.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF56DC
RGBrgb(175, 86, 220)
HSLhsl(280, 66%, 60%)
HSVhsv(280, 61%, 86%)
CMYKcmyk(20.5%, 60.9%, 0%, 13.7%)
CIE-LABlab(52.88, 57.77, -53.81)
CIE-LCHlch(52.88, 78.95, 317.03°)
OKLaboklab(61.86% 0.1389 -0.1512)
OKLCHoklch(61.86% 0.205 312.6)
XYZxyz(33.9230, 20.9377, 69.9507)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56DC #83DC56
analogous
#6C56DC #AF56DC #DC56C6
triadic
#AF56DC #DCAF56 #56DCAF
tetradic
#AF56DC #DC6C56 #83DC56 #56C6DC
square
#AF56DC #DC6C56 #83DC56 #56C6DC
split-complementary
#AF56DC #C6DC56 #56DC6C
monochromatic
#702098 #952ACB #AF56DC #C789E6 #DFBBF1

Accessibility & contrast

On white

4.05
#AF56DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AF56DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56DC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56DC#FFFFFF#000000##000000
##AF56DC1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#237AE0
Deuteranopia (green-blind)
#4D80D9
Tritanopia (blue-blind)
#AA6F91
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af56dc;
/* rgb */ color: rgb(175, 86, 220);
/* oklch */ color: oklch(61.9% 0.205 312.6);
Tailwind
colors: {
  custom: {
    50: '#ca8ae7',
    500: '#af56dc',
    950: '#000000',
  },
}
SCSS
$custom: #af56dc;
$custom-light: #ca8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#af56dc",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 279.851,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.20537,
    "h": 312.6
  },
  "luminance": 0.20937
}

Semantic roles & 50–950 ramp

primary
#AF56DC
secondary
#BEE1AD
accent
#E93F78
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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