#AF56DE#AF56DE

#AF56DE is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 62.0% C 0.207 H 312.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF56DE
RGBrgb(175, 86, 222)
HSLhsl(279, 67%, 60%)
HSVhsv(279, 61%, 87%)
CMYKcmyk(21.2%, 61.3%, 0%, 12.9%)
CIE-LABlab(53.00, 58.19, -54.76)
CIE-LCHlch(53.00, 79.90, 316.74°)
OKLaboklab(61.99% 0.1389 -0.154)
OKLCHoklch(61.99% 0.207 312)
XYZxyz(34.1894, 21.0443, 71.3540)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56DE #85DE56
analogous
#6B56DE #AF56DE #DE56C9
triadic
#AF56DE #DEAF56 #56DEAF
tetradic
#AF56DE #DE6B56 #85DE56 #56C9DE
square
#AF56DE #DE6B56 #85DE56 #56C9DE
split-complementary
#AF56DE #C9DE56 #56DE6B
monochromatic
#701E9B #9528CE #AF56DE #C789E8 #DFBCF2

Accessibility & contrast

On white

4.03
#AF56DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AF56DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56DE
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56DE#FFFFFF#000000##000000
##AF56DE1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F7AE2
Deuteranopia (green-blind)
#4B80DB
Tritanopia (blue-blind)
#AA7092
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af56de;
/* rgb */ color: rgb(175, 86, 222);
/* oklch */ color: oklch(62.0% 0.207 312.0);
Tailwind
colors: {
  custom: {
    50: '#ca8ae9',
    500: '#af56de',
    950: '#000000',
  },
}
SCSS
$custom: #af56de;
$custom-light: #ca8ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#af56de",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 222
  },
  "hsl": {
    "h": 279.265,
    "s": 67.327,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61985,
    "c": 0.2074,
    "h": 312
  },
  "luminance": 0.21043
}

Semantic roles & 50–950 ramp

primary
#AF56DE
secondary
#C0E2AE
accent
#CF1656
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56DE

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

Preview Lab → · Contrast checker → · Palette generator →

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