#AF66FB#AF66FB

#AF66FB is a light, highly saturated violet. Relative luminance 0.256; OKLCH L 65.9% C 0.216 H 303.6°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AF66FB
RGBrgb(175, 102, 251)
HSLhsl(269, 95%, 69%)
HSVhsv(269, 59%, 98%)
CMYKcmyk(30.3%, 59.4%, 0%, 1.6%)
CIE-LABlab(57.64, 56.79, -63.53)
CIE-LCHlch(57.64, 85.21, 311.79°)
OKLaboklab(65.91% 0.1194 -0.1798)
OKLCHoklch(65.91% 0.216 303.6)
XYZxyz(39.8392, 25.5818, 94.0870)
Luminance0.2558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66FB #B2FB66
analogous
#6668FB #AF66FB #F966FB
triadic
#AF66FB #FBAF66 #66FBAF
tetradic
#AF66FB #FB6668 #B2FB66 #66FBF9
square
#AF66FB #FB6668 #B2FB66 #66FBF9
split-complementary
#AF66FB #FBF966 #68FB66
monochromatic
#7106E1 #902AF9 #AF66FB #CEA2FD #EDDDFE

Accessibility & contrast

On white

3.43
#AF66FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#AF66FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66FB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66FB#FFFFFF#000000##000000
##AF66FB1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1589FF
Deuteranopia (green-blind)
#408AF8
Tritanopia (blue-blind)
#A184A7
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #af66fb;
/* rgb */ color: rgb(175, 102, 251);
/* oklch */ color: oklch(65.9% 0.216 303.6);
Tailwind
colors: {
  custom: {
    50: '#cb95fd',
    500: '#af66fb',
    950: '#000000',
  },
}
SCSS
$custom: #af66fb;
$custom-light: #cb95fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af66fb",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 251
  },
  "hsl": {
    "h": 269.396,
    "s": 94.904,
    "l": 69.216
  },
  "oklch": {
    "l": 0.65912,
    "c": 0.21585,
    "h": 303.6
  },
  "luminance": 0.25582
}

Semantic roles & 50–950 ramp

primary
#AF66FB
secondary
#DFF4C9
accent
#E60075
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D18
muted
#827E86

Preview Lab

Preview with #AF66FB

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

Preview Lab → · Contrast checker → · Palette generator →

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