#AF5DFE#AF5DFE

#AF5DFE is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 64.9% C 0.231 H 304.1°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF5DFE
RGBrgb(175, 93, 254)
HSLhsl(271, 99%, 68%)
HSVhsv(271, 63%, 100%)
CMYKcmyk(31.1%, 63.4%, 0%, 0.4%)
CIE-LABlab(56.19, 61.91, -67.53)
CIE-LCHlch(56.19, 91.62, 312.51°)
OKLaboklab(64.92% 0.1295 -0.1915)
OKLCHoklch(64.92% 0.231 304.1)
XYZxyz(39.4789, 24.0985, 96.3184)
Luminance0.2410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5DFE #ACFE5D
analogous
#5E5DFE #AF5DFE #FE5DFC
triadic
#AF5DFE #FEAF5D #5DFEAF
tetradic
#AF5DFE #FE5E5D #ACFE5D #5DFCFE
square
#AF5DFE #FE5E5D #ACFE5D #5DFCFE
split-complementary
#AF5DFE #FCFE5D #5DFE5E
monochromatic
#7201DF #9120FE #AF5DFE #CD9AFE #EBD7FF

Accessibility & contrast

On white

3.61
#AF5DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#AF5DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5DFE
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5DFE#FFFFFF#000000##000000
##AF5DFE1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af5dfe;
/* rgb */ color: rgb(175, 93, 254);
/* oklch */ color: oklch(64.9% 0.231 304.1);
Tailwind
colors: {
  custom: {
    50: '#cc8fff',
    500: '#af5dfe',
    950: '#000000',
  },
}
SCSS
$custom: #af5dfe;
$custom-light: #cc8fff;
$custom-dark: #000000;
JSON
{
  "hex": "#af5dfe",
  "rgb": {
    "r": 175,
    "g": 93,
    "b": 254
  },
  "hsl": {
    "h": 270.559,
    "s": 98.773,
    "l": 68.039
  },
  "oklch": {
    "l": 0.64919,
    "c": 0.23117,
    "h": 304.1
  },
  "luminance": 0.24098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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