#AF56EB#AF56EB

#AF56EB is a light, highly saturated violet. Relative luminance 0.218; OKLCH L 62.8% C 0.221 H 308.9°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF56EB
RGBrgb(175, 86, 235)
HSLhsl(276, 79%, 63%)
HSVhsv(276, 63%, 92%)
CMYKcmyk(25.5%, 63.4%, 0%, 7.8%)
CIE-LABlab(53.78, 60.98, -60.82)
CIE-LCHlch(53.78, 86.13, 315.08°)
OKLaboklab(62.8% 0.1385 -0.1718)
OKLCHoklch(62.8% 0.221 308.9)
XYZxyz(35.9994, 21.7683, 80.8864)
Luminance0.2177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56EB #92EB56
analogous
#6456EB #AF56EB #EB56DC
triadic
#AF56EB #EBAF56 #56EBAF
tetradic
#AF56EB #EB6456 #92EB56 #56DCEB
square
#AF56EB #EB6456 #92EB56 #56DCEB
split-complementary
#AF56EB #DCEB56 #56EB64
monochromatic
#7315B2 #951FE5 #AF56EB #C98DF1 #E3C3F8

Accessibility & contrast

On white

3.92
#AF56EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#AF56EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56EB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56EB#FFFFFF#000000##000000
##AF56EB1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF0
Deuteranopia (green-blind)
#3E82E8
Tritanopia (blue-blind)
#A67499
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af56eb;
/* rgb */ color: rgb(175, 86, 235);
/* oklch */ color: oklch(62.8% 0.221 308.9);
Tailwind
colors: {
  custom: {
    50: '#cb8bf2',
    500: '#af56eb',
    950: '#000000',
  },
}
SCSS
$custom: #af56eb;
$custom-light: #cb8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af56eb",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 275.839,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62802,
    "c": 0.22065,
    "h": 308.9
  },
  "luminance": 0.21768
}

Semantic roles & 50–950 ramp

primary
#AF56EB
secondary
#C9E9B4
accent
#DB0A5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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