#AF56EF#AF56EF

#AF56EF is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 63.1% C 0.225 H 308.0°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF56EF
RGBrgb(175, 86, 239)
HSLhsl(275, 83%, 64%)
HSVhsv(275, 64%, 94%)
CMYKcmyk(26.8%, 64%, 0%, 6.3%)
CIE-LABlab(54.03, 61.86, -62.66)
CIE-LCHlch(54.03, 88.05, 314.63°)
OKLaboklab(63.06% 0.1382 -0.1772)
OKLCHoklch(63.06% 0.225 308)
XYZxyz(36.5838, 22.0021, 83.9642)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56EF #96EF56
analogous
#6256EF #AF56EF #EF56E2
triadic
#AF56EF #EFAF56 #56EFAF
tetradic
#AF56EF #EF6256 #96EF56 #56E2EF
square
#AF56EF #EF6256 #96EF56 #56E2EF
split-complementary
#AF56EF #E2EF56 #56EF62
monochromatic
#7312B9 #951EEA #AF56EF #C98EF4 #E4C6FA

Accessibility & contrast

On white

3.89
#AF56EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#AF56EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56EF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56EF#FFFFFF#000000##000000
##AF56EF1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#3982EC
Tritanopia (blue-blind)
#A5769B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af56ef;
/* rgb */ color: rgb(175, 86, 239);
/* oklch */ color: oklch(63.1% 0.225 308.0);
Tailwind
colors: {
  custom: {
    50: '#cb8bf5',
    500: '#af56ef',
    950: '#000000',
  },
}
SCSS
$custom: #af56ef;
$custom-light: #cb8bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ef",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 274.902,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63061,
    "c": 0.22473,
    "h": 308
  },
  "luminance": 0.22002
}

Semantic roles & 50–950 ramp

primary
#AF56EF
secondary
#CCEBB5
accent
#DF0661
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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