#AF5EFE#AF5EFE

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

Color values

HEX#AF5EFE
RGBrgb(175, 94, 254)
HSLhsl(270, 99%, 68%)
HSVhsv(270, 63%, 100%)
CMYKcmyk(31.1%, 63%, 0%, 0.4%)
CIE-LABlab(56.36, 61.43, -67.25)
CIE-LCHlch(56.36, 91.08, 312.41°)
OKLaboklab(65.05% 0.1284 -0.1907)
OKLCHoklch(65.05% 0.23 303.9)
XYZxyz(39.5672, 24.2752, 96.3478)
Luminance0.2427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EFE #ADFE5E
analogous
#5F5EFE #AF5EFE #FE5EFD
triadic
#AF5EFE #FEAF5E #5EFEAF
tetradic
#AF5EFE #FE5F5E #ADFE5E #5EFDFE
square
#AF5EFE #FE5F5E #ADFE5E #5EFDFE
split-complementary
#AF5EFE #FDFE5E #5EFE5F
monochromatic
#7201E0 #9121FE #AF5EFE #CD9BFE #EBD8FF

Accessibility & contrast

On white

3.59
#AF5EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#AF5EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EFE
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EFE#FFFFFF#000000##000000
##AF5EFE1.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af5efe;
/* rgb */ color: rgb(175, 94, 254);
/* oklch */ color: oklch(65.0% 0.230 303.9);
Tailwind
colors: {
  custom: {
    50: '#cc90ff',
    500: '#af5efe',
    950: '#000000',
  },
}
SCSS
$custom: #af5efe;
$custom-light: #cc90ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af5efe",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 254
  },
  "hsl": {
    "h": 270.375,
    "s": 98.765,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65046,
    "c": 0.22988,
    "h": 303.9
  },
  "luminance": 0.24275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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