#AF5DE3#AF5DE3

#AF5DE3 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.2% C 0.203 H 310.1°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF5DE3
RGBrgb(175, 93, 227)
HSLhsl(277, 71%, 63%)
HSVhsv(277, 59%, 89%)
CMYKcmyk(22.9%, 59%, 0%, 11%)
CIE-LABlab(54.54, 55.87, -55.11)
CIE-LCHlch(54.54, 78.47, 315.39°)
OKLaboklab(63.2% 0.1304 -0.1551)
OKLCHoklch(63.2% 0.203 310.1)
XYZxyz(35.4560, 22.4894, 75.1312)
Luminance0.2249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DE3 #91E35D
analogous
#6C5DE3 #AF5DE3 #E35DD4
triadic
#AF5DE3 #E3AF5D #5DE3AF
tetradic
#AF5DE3 #E36C5D #91E35D #5DD4E3
square
#AF5DE3 #E36C5D #91E35D #5DD4E3
split-complementary
#AF5DE3 #D4E35D #5DE36C
monochromatic
#721DA8 #9529DA #AF5DE3 #C991EC #E3C5F5

Accessibility & contrast

On white

3.82
#AF5DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#AF5DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DE3
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DE3#FFFFFF#000000##000000
##AF5DE31.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A7FE7
Deuteranopia (green-blind)
#4E84E0
Tritanopia (blue-blind)
#A87697
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5de3;
/* rgb */ color: rgb(175, 93, 227);
/* oklch */ color: oklch(63.2% 0.203 310.1);
Tailwind
colors: {
  custom: {
    50: '#ca8fec',
    500: '#af5de3',
    950: '#000000',
  },
}
SCSS
$custom: #af5de3;
$custom-light: #ca8fec;
$custom-dark: #000000;
JSON
{
  "hex": "#af5de3",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 227
  },
  "hsl": {
    "h": 276.716,
    "s": 70.526,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63202,
    "c": 0.20264,
    "h": 310.1
  },
  "luminance": 0.22489
}

Semantic roles & 50–950 ramp

primary
#AF5DE3
secondary
#C8E6B6
accent
#D3135D
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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