#AF6FF6#AF6FF6

#AF6FF6 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.9% C 0.197 H 303.4°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AF6FF6
RGBrgb(175, 111, 246)
HSLhsl(268, 88%, 70%)
HSVhsv(268, 55%, 96%)
CMYKcmyk(28.9%, 54.9%, 0%, 3.5%)
CIE-LABlab(59.10, 50.97, -58.42)
CIE-LCHlch(59.10, 77.53, 311.10°)
OKLaboklab(66.89% 0.1086 -0.1648)
OKLCHoklch(66.89% 0.197 303.4)
XYZxyz(39.9945, 27.1367, 90.3018)
Luminance0.2714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF6FF6 #B6F66F
analogous
#6F73F6 #AF6FF6 #F26FF6
triadic
#AF6FF6 #F6AF6F #6FF6AF
tetradic
#AF6FF6 #F66F73 #B6F66F #6FF6F2
square
#AF6FF6 #F66F73 #B6F66F #6FF6F2
split-complementary
#AF6FF6 #F6F26F #73F66F
monochromatic
#700EDD #8F35F2 #AF6FF6 #CFA9FA #EFE2FD

Accessibility & contrast

On white

3.27
#AF6FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#AF6FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF6FF6
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF6FF6#FFFFFF#000000##000000
##AF6FF61.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8DFA
Deuteranopia (green-blind)
#528EF3
Tritanopia (blue-blind)
#A289A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af6ff6;
/* rgb */ color: rgb(175, 111, 246);
/* oklch */ color: oklch(66.9% 0.197 303.4);
Tailwind
colors: {
  custom: {
    50: '#ca9afa',
    500: '#af6ff6',
    950: '#000000',
  },
}
SCSS
$custom: #af6ff6;
$custom-light: #ca9afa;
$custom-dark: #000000;
JSON
{
  "hex": "#af6ff6",
  "rgb": {
    "r": 175,
    "g": 111,
    "b": 246
  },
  "hsl": {
    "h": 268.444,
    "s": 88.235,
    "l": 70
  },
  "oklch": {
    "l": 0.66889,
    "c": 0.19737,
    "h": 303.4
  },
  "luminance": 0.27137
}

Semantic roles & 50–950 ramp

primary
#AF6FF6
secondary
#E1F3CE
accent
#E50179
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF6FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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