#AF6FEB#AF6FEB

#AF6FEB is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.2% C 0.185 H 305.8°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF6FEB
RGBrgb(175, 111, 235)
HSLhsl(271, 76%, 68%)
HSVhsv(271, 53%, 92%)
CMYKcmyk(25.5%, 52.8%, 0%, 7.8%)
CIE-LABlab(58.49, 48.41, -53.29)
CIE-LCHlch(58.49, 71.99, 312.25°)
OKLaboklab(66.24% 0.108 -0.1498)
OKLCHoklch(66.24% 0.185 305.8)
XYZxyz(38.3559, 26.4813, 81.6719)
Luminance0.2648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FEB #ABEB6F
analogous
#716FEB #AF6FEB #EB6FE9
triadic
#AF6FEB #EBAF6F #6FEBAF
tetradic
#AF6FEB #EB716F #ABEB6F #6FE9EB
square
#AF6FEB #EB716F #ABEB6F #6FE9EB
split-complementary
#AF6FEB #E9EB6F #6FEB71
monochromatic
#731BC4 #9139E4 #AF6FEB #CDA5F2 #EBDAFA

Accessibility & contrast

On white

3.34
#AF6FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#AF6FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FEB
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FEB#FFFFFF#000000##000000
##AF6FEB1.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#478BEF
Deuteranopia (green-blind)
#5B8DE8
Tritanopia (blue-blind)
#A586A3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af6feb;
/* rgb */ color: rgb(175, 111, 235);
/* oklch */ color: oklch(66.2% 0.185 305.8);
Tailwind
colors: {
  custom: {
    50: '#ca9af2',
    500: '#af6feb',
    950: '#000000',
  },
}
SCSS
$custom: #af6feb;
$custom-light: #ca9af2;
$custom-dark: #000000;
JSON
{
  "hex": "#af6feb",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 235
  },
  "hsl": {
    "h": 270.968,
    "s": 75.61,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66243,
    "c": 0.1847,
    "h": 305.8
  },
  "luminance": 0.26481
}

Semantic roles & 50–950 ramp

primary
#AF6FEB
secondary
#DAEEC8
accent
#D80E6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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