#AF5DE5#AF5DE5

#AF5DE5 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.3% C 0.205 H 309.6°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AF5DE5
RGBrgb(175, 93, 229)
HSLhsl(276, 72%, 63%)
HSVhsv(276, 59%, 90%)
CMYKcmyk(23.6%, 59.4%, 0%, 10.2%)
CIE-LABlab(54.66, 56.31, -56.05)
CIE-LCHlch(54.66, 79.45, 315.13°)
OKLaboklab(63.32% 0.1304 -0.1578)
OKLCHoklch(63.32% 0.205 309.6)
XYZxyz(35.7337, 22.6004, 76.5934)
Luminance0.2260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DE5 #93E55D
analogous
#6B5DE5 #AF5DE5 #E55DD7
triadic
#AF5DE5 #E5AF5D #5DE5AF
tetradic
#AF5DE5 #E56B5D #93E55D #5DD7E5
square
#AF5DE5 #E56B5D #93E55D #5DD7E5
split-complementary
#AF5DE5 #D7E55D #5DE56B
monochromatic
#731CAC #9528DD #AF5DE5 #C992ED #E3C6F6

Accessibility & contrast

On white

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

On black

5.52
#AF5DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DE5
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DE5#FFFFFF#000000##000000
##AF5DE51.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#277FE9
Deuteranopia (green-blind)
#4C84E2
Tritanopia (blue-blind)
#A87798
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5de5;
/* rgb */ color: rgb(175, 93, 229);
/* oklch */ color: oklch(63.3% 0.205 309.6);
Tailwind
colors: {
  custom: {
    50: '#ca8fee',
    500: '#af5de5',
    950: '#000000',
  },
}
SCSS
$custom: #af5de5;
$custom-light: #ca8fee;
$custom-dark: #000000;
JSON
{
  "hex": "#af5de5",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 276.176,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63323,
    "c": 0.20475,
    "h": 309.6
  },
  "luminance": 0.226
}

Semantic roles & 50–950 ramp

primary
#AF5DE5
secondary
#CAE7B7
accent
#D4115F
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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