#AF56EC#AF56EC

#AF56EC is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.9% C 0.222 H 308.6°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF56EC
RGBrgb(175, 86, 236)
HSLhsl(276, 80%, 63%)
HSVhsv(276, 64%, 93%)
CMYKcmyk(25.8%, 63.6%, 0%, 7.5%)
CIE-LABlab(53.84, 61.20, -61.29)
CIE-LCHlch(53.84, 86.61, 314.96°)
OKLaboklab(62.87% 0.1384 -0.1731)
OKLCHoklch(62.87% 0.222 308.6)
XYZxyz(36.1443, 21.8262, 81.6494)
Luminance0.2183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56EC #93EC56
analogous
#6456EC #AF56EC #EC56DE
triadic
#AF56EC #ECAF56 #56ECAF
tetradic
#AF56EC #EC6456 #93EC56 #56DEEC
square
#AF56EC #EC6456 #93EC56 #56DEEC
split-complementary
#AF56EC #DEEC56 #56EC64
monochromatic
#7314B3 #951FE6 #AF56EC #C98DF2 #E3C4F8

Accessibility & contrast

On white

3.91
#AF56EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#AF56EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56EC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56EC#FFFFFF#000000##000000
##AF56EC1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#3D82E9
Tritanopia (blue-blind)
#A6759A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af56ec;
/* rgb */ color: rgb(175, 86, 236);
/* oklch */ color: oklch(62.9% 0.222 308.6);
Tailwind
colors: {
  custom: {
    50: '#cb8bf3',
    500: '#af56ec',
    950: '#000000',
  },
}
SCSS
$custom: #af56ec;
$custom-light: #cb8bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ec",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 275.6,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62866,
    "c": 0.22167,
    "h": 308.6
  },
  "luminance": 0.21826
}

Semantic roles & 50–950 ramp

primary
#AF56EC
secondary
#CAEAB4
accent
#DC095F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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