#AF6EF7#AF6EF7

#AF6EF7 is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.8% C 0.200 H 303.3°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AF6EF7
RGBrgb(175, 110, 247)
HSLhsl(268, 90%, 70%)
HSVhsv(268, 55%, 97%)
CMYKcmyk(29.1%, 55.5%, 0%, 3.1%)
CIE-LABlab(58.96, 51.73, -59.21)
CIE-LCHlch(58.96, 78.62, 311.14°)
OKLaboklab(66.8% 0.1098 -0.1671)
OKLCHoklch(66.8% 0.2 303.3)
XYZxyz(40.0399, 26.9813, 91.0762)
Luminance0.2698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6EF7 #B6F76E
analogous
#6E72F7 #AF6EF7 #F36EF7
triadic
#AF6EF7 #F7AF6E #6EF7AF
tetradic
#AF6EF7 #F76E72 #B6F76E #6EF7F3
square
#AF6EF7 #F76E72 #B6F76E #6EF7F3
split-complementary
#AF6EF7 #F7F36E #72F76E
monochromatic
#700CDE #8F34F4 #AF6EF7 #CFA8FA #EFE2FD

Accessibility & contrast

On white

3.28
#AF6EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#AF6EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6EF7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6EF7#FFFFFF#000000##000000
##AF6EF71.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#378CFC
Deuteranopia (green-blind)
#508EF4
Tritanopia (blue-blind)
#A289A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6ef7;
/* rgb */ color: rgb(175, 110, 247);
/* oklch */ color: oklch(66.8% 0.200 303.3);
Tailwind
colors: {
  custom: {
    50: '#ca9afa',
    500: '#af6ef7',
    950: '#000000',
  },
}
SCSS
$custom: #af6ef7;
$custom-light: #ca9afa;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ef7",
  "rgb": {
    "r": 175,
    "g": 110,
    "b": 247
  },
  "hsl": {
    "h": 268.467,
    "s": 89.542,
    "l": 70
  },
  "oklch": {
    "l": 0.66802,
    "c": 0.19999,
    "h": 303.3
  },
  "luminance": 0.26981
}

Semantic roles & 50–950 ramp

primary
#AF6EF7
secondary
#E1F4CD
accent
#E60079
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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