#AF56E8#AF56E8

#AF56E8 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.6% C 0.218 H 309.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AF56E8
RGBrgb(175, 86, 232)
HSLhsl(277, 76%, 62%)
HSVhsv(277, 63%, 91%)
CMYKcmyk(24.6%, 62.9%, 0%, 9%)
CIE-LABlab(53.60, 60.33, -59.44)
CIE-LCHlch(53.60, 84.69, 315.43°)
OKLaboklab(62.61% 0.1386 -0.1677)
OKLCHoklch(62.61% 0.218 309.6)
XYZxyz(35.5696, 21.5964, 78.6230)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56E8 #8FE856
analogous
#6656E8 #AF56E8 #E856D8
triadic
#AF56E8 #E8AF56 #56E8AF
tetradic
#AF56E8 #E86656 #8FE856 #56D8E8
square
#AF56E8 #E86656 #8FE856 #56D8E8
split-complementary
#AF56E8 #D8E856 #56E866
monochromatic
#7217AC #9520E1 #AF56E8 #C88CEF #E2C2F7

Accessibility & contrast

On white

3.95
#AF56E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#AF56E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56E8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56E8#FFFFFF#000000##000000
##AF56E81.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEC
Deuteranopia (green-blind)
#4181E5
Tritanopia (blue-blind)
#A77397
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af56e8;
/* rgb */ color: rgb(175, 86, 232);
/* oklch */ color: oklch(62.6% 0.218 309.6);
Tailwind
colors: {
  custom: {
    50: '#cb8bf0',
    500: '#af56e8',
    950: '#000000',
  },
}
SCSS
$custom: #af56e8;
$custom-light: #cb8bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#af56e8",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 276.575,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.6261,
    "c": 0.21759,
    "h": 309.6
  },
  "luminance": 0.21596
}

Semantic roles & 50–950 ramp

primary
#AF56E8
secondary
#C7E8B2
accent
#D80D5D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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