#AF5EF4#AF5EF4

#AF5EF4 is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.4% C 0.219 H 306.0°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF5EF4
RGBrgb(175, 94, 244)
HSLhsl(272, 87%, 66%)
HSVhsv(272, 61%, 96%)
CMYKcmyk(28.3%, 61.5%, 0%, 4.3%)
CIE-LABlab(55.74, 59.16, -62.71)
CIE-LCHlch(55.74, 86.21, 313.33°)
OKLaboklab(64.4% 0.1289 -0.1774)
OKLCHoklch(64.4% 0.219 306)
XYZxyz(38.0075, 23.6513, 88.1333)
Luminance0.2365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EF4 #A3F45E
analogous
#645EF4 #AF5EF4 #F45EEE
triadic
#AF5EF4 #F4AF5E #5EF4AF
tetradic
#AF5EF4 #F4645E #A3F45E #5EEEF4
square
#AF5EF4 #F4645E #A3F45E #5EEEF4
split-complementary
#AF5EF4 #EEF45E #5EF464
monochromatic
#730ECA #9325F0 #AF5EF4 #CB97F8 #E8D1FC

Accessibility & contrast

On white

3.66
#AF5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#AF5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EF4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EF4#FFFFFF#000000##000000
##AF5EF41.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083F9
Deuteranopia (green-blind)
#3E86F1
Tritanopia (blue-blind)
#A37DA1
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5ef4;
/* rgb */ color: rgb(175, 94, 244);
/* oklch */ color: oklch(64.4% 0.219 306.0);
Tailwind
colors: {
  custom: {
    50: '#cb90f8',
    500: '#af5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #af5ef4;
$custom-light: #cb90f8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ef4",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 272.4,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64395,
    "c": 0.21926,
    "h": 306
  },
  "luminance": 0.23651
}

Semantic roles & 50–950 ramp

primary
#AF5EF4
secondary
#D5EFBE
accent
#E4026A
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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