#AF5DE4#AF5DE4

#AF5DE4 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.3% C 0.204 H 309.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF5DE4
RGBrgb(175, 93, 228)
HSLhsl(276, 71%, 63%)
HSVhsv(276, 59%, 89%)
CMYKcmyk(23.2%, 59.2%, 0%, 10.6%)
CIE-LABlab(54.60, 56.09, -55.58)
CIE-LCHlch(54.60, 78.96, 315.26°)
OKLaboklab(63.26% 0.1304 -0.1564)
OKLCHoklch(63.26% 0.204 309.8)
XYZxyz(35.5944, 22.5448, 75.8602)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DE4 #92E45D
analogous
#6B5DE4 #AF5DE4 #E45DD6
triadic
#AF5DE4 #E4AF5D #5DE4AF
tetradic
#AF5DE4 #E46B5D #92E45D #5DD6E4
square
#AF5DE4 #E46B5D #92E45D #5DD6E4
split-complementary
#AF5DE4 #D6E45D #5DE46B
monochromatic
#731CAA #9529DB #AF5DE4 #C991ED #E3C6F5

Accessibility & contrast

On white

3.81
#AF5DE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AF5DE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DE4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DE4#FFFFFF#000000##000000
##AF5DE41.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#287FE8
Deuteranopia (green-blind)
#4D84E1
Tritanopia (blue-blind)
#A87698
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5de4;
/* rgb */ color: rgb(175, 93, 228);
/* oklch */ color: oklch(63.3% 0.204 309.8);
Tailwind
colors: {
  custom: {
    50: '#ca8fed',
    500: '#af5de4',
    950: '#000000',
  },
}
SCSS
$custom: #af5de4;
$custom-light: #ca8fed;
$custom-dark: #000000;
JSON
{
  "hex": "#af5de4",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 228
  },
  "hsl": {
    "h": 276.444,
    "s": 71.429,
    "l": 62.941
  },
  "oklch": {
    "l": 0.63262,
    "c": 0.20369,
    "h": 309.8
  },
  "luminance": 0.22544
}

Semantic roles & 50–950 ramp

primary
#AF5DE4
secondary
#C9E7B6
accent
#D3125E
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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