#AF5EF3#AF5EF3

#AF5EF3 is a light, highly saturated violet. Relative luminance 0.236; OKLCH L 64.3% C 0.218 H 306.2°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF5EF3
RGBrgb(175, 94, 243)
HSLhsl(273, 86%, 66%)
HSVhsv(273, 61%, 95%)
CMYKcmyk(28%, 61.3%, 0%, 4.7%)
CIE-LABlab(55.68, 58.93, -62.25)
CIE-LCHlch(55.68, 85.72, 313.43°)
OKLaboklab(64.33% 0.129 -0.176)
OKLCHoklch(64.33% 0.218 306.2)
XYZxyz(37.8561, 23.5908, 87.3358)
Luminance0.2359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EF3 #A2F35E
analogous
#645EF3 #AF5EF3 #F35EED
triadic
#AF5EF3 #F3AF5E #5EF3AF
tetradic
#AF5EF3 #F3645E #A2F35E #5EEDF3
square
#AF5EF3 #F3645E #A2F35E #5EEDF3
split-complementary
#AF5EF3 #EDF35E #5EF364
monochromatic
#730FC8 #9325EF #AF5EF3 #CB97F7 #E8D0FB

Accessibility & contrast

On white

3.67
#AF5EF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#AF5EF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EF3
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EF3#FFFFFF#000000##000000
##AF5EF31.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083F8
Deuteranopia (green-blind)
#3F86F0
Tritanopia (blue-blind)
#A47CA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5ef3;
/* rgb */ color: rgb(175, 94, 243);
/* oklch */ color: oklch(64.3% 0.218 306.2);
Tailwind
colors: {
  custom: {
    50: '#cb90f8',
    500: '#af5ef3',
    950: '#000000',
  },
}
SCSS
$custom: #af5ef3;
$custom-light: #cb90f8;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ef3",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 243
  },
  "hsl": {
    "h": 272.617,
    "s": 86.127,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64331,
    "c": 0.2182,
    "h": 306.2
  },
  "luminance": 0.2359
}

Semantic roles & 50–950 ramp

primary
#AF5EF3
secondary
#D4EFBE
accent
#E30369
background
#FCF9FF
surface
#F9F1FF
border
#D2CBD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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