#AF66F5#AF66F5

#AF66F5 is a light, highly saturated violet. Relative luminance 0.252; OKLCH L 65.5% C 0.209 H 304.8°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AF66F5
RGBrgb(175, 102, 245)
HSLhsl(271, 88%, 68%)
HSVhsv(271, 58%, 96%)
CMYKcmyk(28.6%, 58.4%, 0%, 3.9%)
CIE-LABlab(57.28, 55.40, -60.79)
CIE-LCHlch(57.28, 82.24, 312.34°)
OKLaboklab(65.54% 0.1195 -0.1718)
OKLCHoklch(65.54% 0.209 304.8)
XYZxyz(38.9084, 25.2095, 89.1846)
Luminance0.2521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66F5 #ACF566
analogous
#6766F5 #AF66F5 #F566F4
triadic
#AF66F5 #F5AF66 #66F5AF
tetradic
#AF66F5 #F56766 #ACF566 #66F4F5
square
#AF66F5 #F56766 #ACF566 #66F4F5
split-complementary
#AF66F5 #F4F566 #66F567
monochromatic
#720ED3 #912DF1 #AF66F5 #CD9FF9 #EBD9FD

Accessibility & contrast

On white

3.48
#AF66F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#AF66F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66F5
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66F5#FFFFFF#000000##000000
##AF66F51.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2587FA
Deuteranopia (green-blind)
#478AF2
Tritanopia (blue-blind)
#A382A4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #af66f5;
/* rgb */ color: rgb(175, 102, 245);
/* oklch */ color: oklch(65.5% 0.209 304.8);
Tailwind
colors: {
  custom: {
    50: '#cb95f9',
    500: '#af66f5',
    950: '#000000',
  },
}
SCSS
$custom: #af66f5;
$custom-light: #cb95f9;
$custom-dark: #000000;
JSON
{
  "hex": "#af66f5",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 245
  },
  "hsl": {
    "h": 270.629,
    "s": 87.73,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65535,
    "c": 0.20924,
    "h": 304.8
  },
  "luminance": 0.25209
}

Semantic roles & 50–950 ramp

primary
#AF66F5
secondary
#DBF1C6
accent
#E40170
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF66F5

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

Preview Lab → · Contrast checker → · Palette generator →

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