#AF5EE4#AF5EE4

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

Color values

HEX#AF5EE4
RGBrgb(175, 94, 228)
HSLhsl(276, 71%, 63%)
HSVhsv(276, 59%, 89%)
CMYKcmyk(23.2%, 58.8%, 0%, 10.6%)
CIE-LABlab(54.78, 55.59, -55.28)
CIE-LCHlch(54.78, 78.40, 315.16°)
OKLaboklab(63.4% 0.1292 -0.1556)
OKLCHoklch(63.4% 0.202 309.7)
XYZxyz(35.6828, 22.7215, 75.8897)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EE4 #93E45E
analogous
#6C5EE4 #AF5EE4 #E45ED6
triadic
#AF5EE4 #E4AF5E #5EE4AF
tetradic
#AF5EE4 #E46C5E #93E45E #5ED6E4
square
#AF5EE4 #E46C5E #93E45E #5ED6E4
split-complementary
#AF5EE4 #D6E45E #5EE46C
monochromatic
#731DAB #952ADB #AF5EE4 #C992ED #E3C7F6

Accessibility & contrast

On white

3.79
#AF5EE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#AF5EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EE4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EE4#FFFFFF#000000##000000
##AF5EE41.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B80E8
Deuteranopia (green-blind)
#4E84E1
Tritanopia (blue-blind)
#A87798
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ee4;
/* rgb */ color: rgb(175, 94, 228);
/* oklch */ color: oklch(63.4% 0.202 309.7);
Tailwind
colors: {
  custom: {
    50: '#ca8fed',
    500: '#af5ee4',
    950: '#000000',
  },
}
SCSS
$custom: #af5ee4;
$custom-light: #ca8fed;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ee4",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 228
  },
  "hsl": {
    "h": 276.269,
    "s": 71.277,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63396,
    "c": 0.20225,
    "h": 309.7
  },
  "luminance": 0.22721
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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