#AF6DEB#AF6DEB

#AF6DEB is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.9% C 0.188 H 306.1°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#AF6DEB
RGBrgb(175, 109, 235)
HSLhsl(271, 76%, 67%)
HSVhsv(271, 54%, 92%)
CMYKcmyk(25.5%, 53.6%, 0%, 7.8%)
CIE-LABlab(58.08, 49.47, -53.93)
CIE-LCHlch(58.08, 73.18, 312.53°)
OKLaboklab(65.94% 0.1106 -0.1517)
OKLCHoklch(65.94% 0.188 306.1)
XYZxyz(38.1401, 26.0497, 81.6000)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6DEB #A9EB6D
analogous
#706DEB #AF6DEB #EB6DE8
triadic
#AF6DEB #EBAF6D #6DEBAF
tetradic
#AF6DEB #EB706D #A9EB6D #6DE8EB
square
#AF6DEB #EB706D #A9EB6D #6DE8EB
split-complementary
#AF6DEB #E8EB6D #6DEB70
monochromatic
#731BC3 #9237E4 #AF6DEB #CCA3F2 #EAD9FA

Accessibility & contrast

On white

3.38
#AF6DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#AF6DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6DEB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6DEB#FFFFFF#000000##000000
##AF6DEB1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4389EF
Deuteranopia (green-blind)
#598CE8
Tritanopia (blue-blind)
#A584A2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af6deb;
/* rgb */ color: rgb(175, 109, 235);
/* oklch */ color: oklch(65.9% 0.188 306.1);
Tailwind
colors: {
  custom: {
    50: '#ca99f2',
    500: '#af6deb',
    950: '#000000',
  },
}
SCSS
$custom: #af6deb;
$custom-light: #ca99f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af6deb",
  "rgb": {
    "r": 175,
    "g": 109,
    "b": 235
  },
  "hsl": {
    "h": 271.429,
    "s": 75.904,
    "l": 67.451
  },
  "oklch": {
    "l": 0.65943,
    "c": 0.18774,
    "h": 306.1
  },
  "luminance": 0.26049
}

Semantic roles & 50–950 ramp

primary
#AF6DEB
secondary
#D9EEC6
accent
#D80D6E
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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