#AF56E3#AF56E3

#AF56E3 is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.3% C 0.212 H 310.8°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF56E3
RGBrgb(175, 86, 227)
HSLhsl(278, 72%, 61%)
HSVhsv(278, 62%, 89%)
CMYKcmyk(22.9%, 62.1%, 0%, 11%)
CIE-LABlab(53.29, 59.26, -57.11)
CIE-LCHlch(53.29, 82.29, 316.06°)
OKLaboklab(62.3% 0.1388 -0.1609)
OKLCHoklch(62.3% 0.213 310.8)
XYZxyz(34.8695, 21.3163, 74.9357)
Luminance0.2132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56E3 #8AE356
analogous
#6956E3 #AF56E3 #E356D1
triadic
#AF56E3 #E3AF56 #56E3AF
tetradic
#AF56E3 #E36956 #8AE356 #56D1E3
square
#AF56E3 #E36956 #8AE356 #56D1E3
split-complementary
#AF56E3 #D1E356 #56E369
monochromatic
#711BA4 #9624D8 #AF56E3 #C88BEC #E1BFF4

Accessibility & contrast

On white

3.99
#AF56E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#AF56E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56E3
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56E3#FFFFFF#000000##000000
##AF56E31.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#127BE7
Deuteranopia (green-blind)
#4781E0
Tritanopia (blue-blind)
#A87195
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af56e3;
/* rgb */ color: rgb(175, 86, 227);
/* oklch */ color: oklch(62.3% 0.212 310.8);
Tailwind
colors: {
  custom: {
    50: '#cb8bec',
    500: '#af56e3',
    950: '#000000',
  },
}
SCSS
$custom: #af56e3;
$custom-light: #cb8bec;
$custom-dark: #000000;
JSON
{
  "hex": "#af56e3",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 227
  },
  "hsl": {
    "h": 277.872,
    "s": 71.574,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62295,
    "c": 0.2125,
    "h": 310.8
  },
  "luminance": 0.21316
}

Semantic roles & 50–950 ramp

primary
#AF56E3
secondary
#C3E5B0
accent
#D41259
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF56E3

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

Preview Lab → · Contrast checker → · Palette generator →

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