#AF6EF6#AF6EF6

#AF6EF6 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.7% C 0.199 H 303.5°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AF6EF6
RGBrgb(175, 110, 246)
HSLhsl(269, 88%, 70%)
HSVhsv(269, 55%, 96%)
CMYKcmyk(28.9%, 55.3%, 0%, 3.5%)
CIE-LABlab(58.90, 51.49, -58.74)
CIE-LCHlch(58.90, 78.12, 311.24°)
OKLaboklab(66.74% 0.1098 -0.1658)
OKLCHoklch(66.74% 0.199 303.5)
XYZxyz(39.8860, 26.9197, 90.2656)
Luminance0.2692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6EF6 #B5F66E
analogous
#6E71F6 #AF6EF6 #F36EF6
triadic
#AF6EF6 #F6AF6E #6EF6AF
tetradic
#AF6EF6 #F66E71 #B5F66E #6EF6F3
square
#AF6EF6 #F66E71 #B5F66E #6EF6F3
split-complementary
#AF6EF6 #F6F36E #71F66E
monochromatic
#700EDC #8F34F2 #AF6EF6 #CFA8FA #EFE1FD

Accessibility & contrast

On white

3.29
#AF6EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#AF6EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6EF6
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6EF6#FFFFFF#000000##000000
##AF6EF61.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#398CFB
Deuteranopia (green-blind)
#518EF3
Tritanopia (blue-blind)
#A288A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6ef6;
/* rgb */ color: rgb(175, 110, 246);
/* oklch */ color: oklch(66.7% 0.199 303.5);
Tailwind
colors: {
  custom: {
    50: '#ca9afa',
    500: '#af6ef6',
    950: '#000000',
  },
}
SCSS
$custom: #af6ef6;
$custom-light: #ca9afa;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ef6",
  "rgb": {
    "r": 175,
    "g": 110,
    "b": 246
  },
  "hsl": {
    "h": 268.676,
    "s": 88.312,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66741,
    "c": 0.19884,
    "h": 303.5
  },
  "luminance": 0.2692
}

Semantic roles & 50–950 ramp

primary
#AF6EF6
secondary
#E1F3CD
accent
#E50178
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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