#AF56DF#AF56DF

#AF56DF is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.0% C 0.208 H 311.8°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF56DF
RGBrgb(175, 86, 223)
HSLhsl(279, 68%, 61%)
HSVhsv(279, 61%, 87%)
CMYKcmyk(21.5%, 61.4%, 0%, 12.5%)
CIE-LABlab(53.06, 58.40, -55.23)
CIE-LCHlch(53.06, 80.38, 316.60°)
OKLaboklab(62.05% 0.1389 -0.1554)
OKLCHoklch(62.05% 0.208 311.8)
XYZxyz(34.3239, 21.0981, 72.0619)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56DF #86DF56
analogous
#6A56DF #AF56DF #DF56CA
triadic
#AF56DF #DFAF56 #56DFAF
tetradic
#AF56DF #DF6A56 #86DF56 #56CADF
square
#AF56DF #DF6A56 #86DF56 #56CADF
split-complementary
#AF56DF #CADF56 #56DF6A
monochromatic
#701E9D #9527D0 #AF56DF #C789E9 #E0BDF2

Accessibility & contrast

On white

4.02
#AF56DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#AF56DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56DF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56DF#FFFFFF#000000##000000
##AF56DF1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D7AE3
Deuteranopia (green-blind)
#4A80DC
Tritanopia (blue-blind)
#A97093
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af56df;
/* rgb */ color: rgb(175, 86, 223);
/* oklch */ color: oklch(62.0% 0.208 311.8);
Tailwind
colors: {
  custom: {
    50: '#ca8aea',
    500: '#af56df',
    950: '#000000',
  },
}
SCSS
$custom: #af56df;
$custom-light: #ca8aea;
$custom-dark: #000000;
JSON
{
  "hex": "#af56df",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 223
  },
  "hsl": {
    "h": 278.978,
    "s": 68.159,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62047,
    "c": 0.20842,
    "h": 311.8
  },
  "luminance": 0.21097
}

Semantic roles & 50–950 ramp

primary
#AF56DF
secondary
#C1E2AE
accent
#D01557
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56DF

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

Preview Lab → · Contrast checker → · Palette generator →

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