#AF56E2#AF56E2

#AF56E2 is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.2% C 0.211 H 311.0°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AF56E2
RGBrgb(175, 86, 226)
HSLhsl(278, 71%, 61%)
HSVhsv(278, 62%, 89%)
CMYKcmyk(22.6%, 61.9%, 0%, 11.4%)
CIE-LABlab(53.23, 59.04, -56.64)
CIE-LCHlch(53.23, 81.82, 316.19°)
OKLaboklab(62.23% 0.1388 -0.1595)
OKLCHoklch(62.23% 0.211 311)
XYZxyz(34.7319, 21.2613, 74.2110)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56E2 #89E256
analogous
#6956E2 #AF56E2 #E256CF
triadic
#AF56E2 #E2AF56 #56E2AF
tetradic
#AF56E2 #E26956 #89E256 #56CFE2
square
#AF56E2 #E26956 #89E256 #56CFE2
split-complementary
#AF56E2 #CFE256 #56E269
monochromatic
#711CA2 #9525D6 #AF56E2 #C88AEB #E0BEF4

Accessibility & contrast

On white

4.00
#AF56E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#AF56E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56E2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56E2#FFFFFF#000000##000000
##AF56E21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#157BE6
Deuteranopia (green-blind)
#4881DF
Tritanopia (blue-blind)
#A97194
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af56e2;
/* rgb */ color: rgb(175, 86, 226);
/* oklch */ color: oklch(62.2% 0.211 311.0);
Tailwind
colors: {
  custom: {
    50: '#ca8aec',
    500: '#af56e2',
    950: '#000000',
  },
}
SCSS
$custom: #af56e2;
$custom-light: #ca8aec;
$custom-dark: #000000;
JSON
{
  "hex": "#af56e2",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 278.143,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62232,
    "c": 0.21147,
    "h": 311
  },
  "luminance": 0.21261
}

Semantic roles & 50–950 ramp

primary
#AF56E2
secondary
#C3E4B0
accent
#D31359
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56E2

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

Preview Lab → · Contrast checker → · Palette generator →

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