#AF5DFF#AF5DFF

#AF5DFF is a light, highly saturated violet. Relative luminance 0.242; OKLCH L 65.0% C 0.232 H 303.9°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF5DFF
RGBrgb(175, 93, 255)
HSLhsl(270, 100%, 68%)
HSVhsv(270, 64%, 100%)
CMYKcmyk(31.4%, 63.5%, 0%, 0%)
CIE-LABlab(56.25, 62.14, -67.98)
CIE-LCHlch(56.25, 92.10, 312.43°)
OKLaboklab(64.99% 0.1294 -0.1928)
OKLCHoklch(64.99% 0.232 303.9)
XYZxyz(39.6395, 24.1628, 97.1639)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DFF #ADFF5D
analogous
#5E5DFF #AF5DFF #FF5DFE
triadic
#AF5DFF #FFAF5D #5DFFAF
tetradic
#AF5DFF #FF5E5D #ADFF5D #5DFEFF
square
#AF5DFF #FF5E5D #ADFF5D #5DFEFF
split-complementary
#AF5DFF #FEFF5D #5DFF5E
monochromatic
#7200E2 #9120FF #AF5DFF #CD9AFF #EBD7FF

Accessibility & contrast

On white

3.60
#AF5DFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#AF5DFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DFF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DFF#FFFFFF#000000##000000
##AF5DFF1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#2B87FB
Tritanopia (blue-blind)
#A080A6
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #af5dff;
/* rgb */ color: rgb(175, 93, 255);
/* oklch */ color: oklch(65.0% 0.232 303.9);
Tailwind
colors: {
  custom: {
    50: '#cc8fff',
    500: '#af5dff',
    950: '#000000',
  },
}
SCSS
$custom: #af5dff;
$custom-light: #cc8fff;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dff",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 255
  },
  "hsl": {
    "h": 270.37,
    "s": 100,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64986,
    "c": 0.23223,
    "h": 303.9
  },
  "luminance": 0.24163
}

Semantic roles & 50–950 ramp

primary
#AF5DFF
secondary
#DCF4C3
accent
#E60071
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #AF5DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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