#AF56ED#AF56ED

#AF56ED is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.9% C 0.223 H 308.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF56ED
RGBrgb(175, 86, 237)
HSLhsl(275, 81%, 63%)
HSVhsv(275, 64%, 93%)
CMYKcmyk(26.2%, 63.7%, 0%, 7.1%)
CIE-LABlab(53.90, 61.42, -61.75)
CIE-LCHlch(53.90, 87.09, 314.85°)
OKLaboklab(62.93% 0.1384 -0.1745)
OKLCHoklch(62.93% 0.223 308.4)
XYZxyz(36.2899, 21.8845, 82.4167)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56ED #94ED56
analogous
#6356ED #AF56ED #ED56E0
triadic
#AF56ED #EDAF56 #56EDAF
tetradic
#AF56ED #ED6356 #94ED56 #56E0ED
square
#AF56ED #ED6356 #94ED56 #56E0ED
split-complementary
#AF56ED #E0ED56 #56ED63
monochromatic
#7313B5 #951FE7 #AF56ED #C98DF3 #E3C5F9

Accessibility & contrast

On white

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

On black

5.38
#AF56ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56ED
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56ED#FFFFFF#000000##000000
##AF56ED1.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af56ed;
/* rgb */ color: rgb(175, 86, 237);
/* oklch */ color: oklch(62.9% 0.223 308.4);
Tailwind
colors: {
  custom: {
    50: '#cb8bf4',
    500: '#af56ed',
    950: '#000000',
  },
}
SCSS
$custom: #af56ed;
$custom-light: #cb8bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ed",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 237
  },
  "hsl": {
    "h": 275.364,
    "s": 80.749,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62931,
    "c": 0.22269,
    "h": 308.4
  },
  "luminance": 0.21884
}

Semantic roles & 50–950 ramp

primary
#AF56ED
secondary
#CBEAB4
accent
#DD0860
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56ED

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

Preview Lab → · Contrast checker → · Palette generator →

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