#AF56DB#AF56DB

#AF56DB is a mid, highly saturated purple. Relative luminance 0.209; OKLCH L 61.8% C 0.204 H 312.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF56DB
RGBrgb(175, 86, 219)
HSLhsl(280, 65%, 60%)
HSVhsv(280, 61%, 86%)
CMYKcmyk(20.1%, 60.7%, 0%, 14.1%)
CIE-LABlab(52.82, 57.55, -53.34)
CIE-LCHlch(52.82, 78.47, 317.18°)
OKLaboklab(61.8% 0.1389 -0.1499)
OKLCHoklch(61.8% 0.204 312.8)
XYZxyz(33.7909, 20.8849, 69.2553)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56DB #82DB56
analogous
#6C56DB #AF56DB #DB56C5
triadic
#AF56DB #DBAF56 #56DBAF
tetradic
#AF56DB #DB6C56 #82DB56 #56C5DB
square
#AF56DB #DB6C56 #82DB56 #56C5DB
split-complementary
#AF56DB #C5DB56 #56DB6C
monochromatic
#6F2097 #952BC9 #AF56DB #C788E6 #DFBBF0

Accessibility & contrast

On white

4.06
#AF56DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF56DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56DB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56DB#FFFFFF#000000##000000
##AF56DB1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2579DF
Deuteranopia (green-blind)
#4E80D8
Tritanopia (blue-blind)
#AA6F91
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af56db;
/* rgb */ color: rgb(175, 86, 219);
/* oklch */ color: oklch(61.8% 0.204 312.8);
Tailwind
colors: {
  custom: {
    50: '#ca8ae7',
    500: '#af56db',
    950: '#000000',
  },
}
SCSS
$custom: #af56db;
$custom-light: #ca8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#af56db",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 280.15,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61802,
    "c": 0.20436,
    "h": 312.8
  },
  "luminance": 0.20884
}

Semantic roles & 50–950 ramp

primary
#AF56DB
secondary
#BEE0AD
accent
#E84077
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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