#AF56DD#AF56DD

#AF56DD is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.9% C 0.206 H 312.3°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF56DD
RGBrgb(175, 86, 221)
HSLhsl(280, 67%, 60%)
HSVhsv(280, 61%, 87%)
CMYKcmyk(20.8%, 61.1%, 0%, 13.3%)
CIE-LABlab(52.94, 57.98, -54.29)
CIE-LCHlch(52.94, 79.42, 316.88°)
OKLaboklab(61.92% 0.1389 -0.1526)
OKLCHoklch(61.92% 0.206 312.3)
XYZxyz(34.0558, 20.9909, 70.6502)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56DD #84DD56
analogous
#6C56DD #AF56DD #DD56C7
triadic
#AF56DD #DDAF56 #56DDAF
tetradic
#AF56DD #DD6C56 #84DD56 #56C7DD
square
#AF56DD #DD6C56 #84DD56 #56C7DD
split-complementary
#AF56DD #C7DD56 #56DD6C
monochromatic
#701F9A #9529CD #AF56DD #C789E7 #DFBCF2

Accessibility & contrast

On white

4.04
#AF56DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AF56DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56DD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56DD#FFFFFF#000000##000000
##AF56DD1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#217AE1
Deuteranopia (green-blind)
#4C80DA
Tritanopia (blue-blind)
#AA6F92
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af56dd;
/* rgb */ color: rgb(175, 86, 221);
/* oklch */ color: oklch(61.9% 0.206 312.3);
Tailwind
colors: {
  custom: {
    50: '#ca8ae8',
    500: '#af56dd',
    950: '#000000',
  },
}
SCSS
$custom: #af56dd;
$custom-light: #ca8ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#af56dd",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 221
  },
  "hsl": {
    "h": 279.556,
    "s": 66.502,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61924,
    "c": 0.20639,
    "h": 312.3
  },
  "luminance": 0.2099
}

Semantic roles & 50–950 ramp

primary
#AF56DD
secondary
#BFE1AE
accent
#CE1756
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56DD

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

Preview Lab → · Contrast checker → · Palette generator →

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