#AF56DA#AF56DA

#AF56DA is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 61.7% C 0.203 H 313.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF56DA
RGBrgb(175, 86, 218)
HSLhsl(280, 64%, 60%)
HSVhsv(280, 61%, 85%)
CMYKcmyk(19.7%, 60.6%, 0%, 14.5%)
CIE-LABlab(52.77, 57.34, -52.86)
CIE-LCHlch(52.77, 77.99, 317.33°)
OKLaboklab(61.74% 0.1389 -0.1485)
OKLCHoklch(61.74% 0.203 313.1)
XYZxyz(33.6597, 20.8324, 68.5640)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56DA #81DA56
analogous
#6D56DA #AF56DA #DA56C3
triadic
#AF56DA #DAAF56 #56DAAF
tetradic
#AF56DA #DA6D56 #81DA56 #56C3DA
square
#AF56DA #DA6D56 #81DA56 #56C3DA
split-complementary
#AF56DA #C3DA56 #56DA6D
monochromatic
#6F2195 #952CC7 #AF56DA #C788E5 #DFBAF0

Accessibility & contrast

On white

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

On black

5.17
#AF56DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56DA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56DA#FFFFFF#000000##000000
##AF56DA1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2679DE
Deuteranopia (green-blind)
#4F80D7
Tritanopia (blue-blind)
#AB6E90
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af56da;
/* rgb */ color: rgb(175, 86, 218);
/* oklch */ color: oklch(61.7% 0.203 313.1);
Tailwind
colors: {
  custom: {
    50: '#ca8ae6',
    500: '#af56da',
    950: '#000000',
  },
}
SCSS
$custom: #af56da;
$custom-light: #ca8ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#af56da",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 218
  },
  "hsl": {
    "h": 280.455,
    "s": 64.078,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61742,
    "c": 0.20334,
    "h": 313.1
  },
  "luminance": 0.20831
}

Semantic roles & 50–950 ramp

primary
#AF56DA
secondary
#BDE0AC
accent
#E74177
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56DA

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

Preview Lab → · Contrast checker → · Palette generator →

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