#AF56E0#AF56E0

#AF56E0 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.1% C 0.209 H 311.5°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF56E0
RGBrgb(175, 86, 224)
HSLhsl(279, 69%, 61%)
HSVhsv(279, 62%, 88%)
CMYKcmyk(21.9%, 61.6%, 0%, 12.2%)
CIE-LABlab(53.12, 58.61, -55.70)
CIE-LCHlch(53.12, 80.86, 316.46°)
OKLaboklab(62.11% 0.1389 -0.1568)
OKLCHoklch(62.11% 0.209 311.5)
XYZxyz(34.4591, 21.1522, 72.7741)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56E0 #87E056
analogous
#6A56E0 #AF56E0 #E056CC
triadic
#AF56E0 #E0AF56 #56E0AF
tetradic
#AF56E0 #E06A56 #87E056 #56CCE0
square
#AF56E0 #E06A56 #87E056 #56CCE0
split-complementary
#AF56E0 #CCE056 #56E06A
monochromatic
#711D9F #9527D2 #AF56E0 #C78AE9 #E0BDF3

Accessibility & contrast

On white

4.02
#AF56E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AF56E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56E0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56E0#FFFFFF#000000##000000
##AF56E01.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A7AE4
Deuteranopia (green-blind)
#4A81DD
Tritanopia (blue-blind)
#A97093
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af56e0;
/* rgb */ color: rgb(175, 86, 224);
/* oklch */ color: oklch(62.1% 0.209 311.5);
Tailwind
colors: {
  custom: {
    50: '#ca8aea',
    500: '#af56e0',
    950: '#000000',
  },
}
SCSS
$custom: #af56e0;
$custom-light: #ca8aea;
$custom-dark: #000000;
JSON
{
  "hex": "#af56e0",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 224
  },
  "hsl": {
    "h": 278.696,
    "s": 69,
    "l": 60.784
  },
  "oklch": {
    "l": 0.62108,
    "c": 0.20944,
    "h": 311.5
  },
  "luminance": 0.21151
}

Semantic roles & 50–950 ramp

primary
#AF56E0
secondary
#C1E3AF
accent
#D11557
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56E0

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

Preview Lab → · Contrast checker → · Palette generator →

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