#AF5DE6#AF5DE6

#AF5DE6 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.4% C 0.206 H 309.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF5DE6
RGBrgb(175, 93, 230)
HSLhsl(276, 73%, 63%)
HSVhsv(276, 60%, 90%)
CMYKcmyk(23.9%, 59.6%, 0%, 9.8%)
CIE-LABlab(54.72, 56.53, -56.52)
CIE-LCHlch(54.72, 79.93, 315.01°)
OKLaboklab(63.39% 0.1304 -0.1592)
OKLCHoklch(63.39% 0.206 309.3)
XYZxyz(35.8737, 22.6565, 77.3309)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DE6 #94E65D
analogous
#6A5DE6 #AF5DE6 #E65DD9
triadic
#AF5DE6 #E6AF5D #5DE6AF
tetradic
#AF5DE6 #E66A5D #94E65D #5DD9E6
square
#AF5DE6 #E66A5D #94E65D #5DD9E6
split-complementary
#AF5DE6 #D9E65D #5DE66A
monochromatic
#731BAE #9528DE #AF5DE6 #C992EE #E3C7F6

Accessibility & contrast

On white

3.80
#AF5DE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#AF5DE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DE6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DE6#FFFFFF#000000##000000
##AF5DE61.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#257FEA
Deuteranopia (green-blind)
#4B84E3
Tritanopia (blue-blind)
#A77799
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5de6;
/* rgb */ color: rgb(175, 93, 230);
/* oklch */ color: oklch(63.4% 0.206 309.3);
Tailwind
colors: {
  custom: {
    50: '#ca8fef',
    500: '#af5de6',
    950: '#000000',
  },
}
SCSS
$custom: #af5de6;
$custom-light: #ca8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#af5de6",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 230
  },
  "hsl": {
    "h": 275.912,
    "s": 73.262,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63385,
    "c": 0.20581,
    "h": 309.3
  },
  "luminance": 0.22656
}

Semantic roles & 50–950 ramp

primary
#AF5DE6
secondary
#CBE8B7
accent
#D5105F
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5DE6

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

Preview Lab → · Contrast checker → · Palette generator →

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