#AF6EFE#AF6EFE

#AF6EFE is a light, highly saturated violet. Relative luminance 0.274; OKLCH L 67.2% C 0.208 H 301.9°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#AF6EFE
RGBrgb(175, 110, 254)
HSLhsl(267, 99%, 71%)
HSVhsv(267, 57%, 100%)
CMYKcmyk(31.1%, 56.7%, 0%, 0.4%)
CIE-LABlab(59.36, 53.38, -62.42)
CIE-LCHlch(59.36, 82.14, 310.54°)
OKLaboklab(67.23% 0.1099 -0.1766)
OKLCHoklch(67.23% 0.208 301.9)
XYZxyz(41.1404, 27.4215, 96.8722)
Luminance0.2742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6EFE #BDFE6E
analogous
#6E75FE #AF6EFE #F76EFE
triadic
#AF6EFE #FEAF6E #6EFEAF
tetradic
#AF6EFE #FE6E75 #BDFE6E #6EFEF7
square
#AF6EFE #FE6E75 #BDFE6E #6EFEF7
split-complementary
#AF6EFE #FEF76E #75FE6E
monochromatic
#6D02F0 #8D31FE #AF6EFE #D1ABFE #EEE1FF

Accessibility & contrast

On white

3.24
#AF6EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#AF6EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6EFE
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6EFE#FFFFFF#000000##000000
##AF6EFE1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D8EFF
Deuteranopia (green-blind)
#498EFB
Tritanopia (blue-blind)
#9F8BAC
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af6efe;
/* rgb */ color: rgb(175, 110, 254);
/* oklch */ color: oklch(67.2% 0.208 301.9);
Tailwind
colors: {
  custom: {
    50: '#cb9aff',
    500: '#af6efe',
    950: '#000000',
  },
}
SCSS
$custom: #af6efe;
$custom-light: #cb9aff;
$custom-dark: #000000;
JSON
{
  "hex": "#af6efe",
  "rgb": {
    "r": 175,
    "g": 110,
    "b": 254
  },
  "hsl": {
    "h": 267.083,
    "s": 98.63,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6723,
    "c": 0.20799,
    "h": 301.9
  },
  "luminance": 0.27422
}

Semantic roles & 50–950 ramp

primary
#AF6EFE
secondary
#E6F7D1
accent
#E6007E
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF6EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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