#AF5EF1#AF5EF1

#AF5EF1 is a light, highly saturated violet. Relative luminance 0.235; OKLCH L 64.2% C 0.216 H 306.7°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF5EF1
RGBrgb(175, 94, 241)
HSLhsl(273, 84%, 66%)
HSVhsv(273, 61%, 95%)
CMYKcmyk(27.4%, 61%, 0%, 5.5%)
CIE-LABlab(55.55, 58.48, -61.33)
CIE-LCHlch(55.55, 84.74, 313.64°)
OKLaboklab(64.2% 0.129 -0.1733)
OKLCHoklch(64.2% 0.216 306.7)
XYZxyz(37.5557, 23.4706, 85.7538)
Luminance0.2347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EF1 #A0F15E
analogous
#655EF1 #AF5EF1 #F15EEA
triadic
#AF5EF1 #F1AF5E #5EF1AF
tetradic
#AF5EF1 #F1655E #A0F15E #5EEAF1
square
#AF5EF1 #F1655E #A0F15E #5EEAF1
split-complementary
#AF5EF1 #EAF15E #5EF165
monochromatic
#7311C4 #9326EC #AF5EF1 #CB96F6 #E7CFFB

Accessibility & contrast

On white

3.69
#AF5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#AF5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EF1
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EF1#FFFFFF#000000##000000
##AF5EF11.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A82F6
Deuteranopia (green-blind)
#4186EE
Tritanopia (blue-blind)
#A47C9F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5ef1;
/* rgb */ color: rgb(175, 94, 241);
/* oklch */ color: oklch(64.2% 0.216 306.7);
Tailwind
colors: {
  custom: {
    50: '#cb90f6',
    500: '#af5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #af5ef1;
$custom-light: #cb90f6;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ef1",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 273.061,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64203,
    "c": 0.21607,
    "h": 306.7
  },
  "luminance": 0.2347
}

Semantic roles & 50–950 ramp

primary
#AF5EF1
secondary
#D3EEBD
accent
#E00568
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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