#AF66ED#AF66ED

#AF66ED is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.0% C 0.200 H 306.6°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AF66ED
RGBrgb(175, 102, 237)
HSLhsl(272, 79%, 66%)
HSVhsv(272, 57%, 93%)
CMYKcmyk(26.2%, 57%, 0%, 7.1%)
CIE-LABlab(56.81, 53.57, -57.08)
CIE-LCHlch(56.81, 78.28, 313.18°)
OKLaboklab(65.05% 0.1195 -0.1609)
OKLCHoklch(65.05% 0.2 306.6)
XYZxyz(37.7134, 24.7315, 82.8912)
Luminance0.2473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66ED #A4ED66
analogous
#6C66ED #AF66ED #ED66E8
triadic
#AF66ED #EDAF66 #66EDAF
tetradic
#AF66ED #ED6C66 #A4ED66 #66E8ED
square
#AF66ED #ED6C66 #A4ED66 #66E8ED
split-complementary
#AF66ED #E8ED66 #66ED6C
monochromatic
#7317C2 #922FE7 #AF66ED #CC9DF3 #E8D4FA

Accessibility & contrast

On white

3.53
#AF66ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#AF66ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66ED
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66ED#FFFFFF#000000##000000
##AF66ED1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3286F1
Deuteranopia (green-blind)
#4F89EA
Tritanopia (blue-blind)
#A580A0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af66ed;
/* rgb */ color: rgb(175, 102, 237);
/* oklch */ color: oklch(65.0% 0.200 306.6);
Tailwind
colors: {
  custom: {
    50: '#ca94f3',
    500: '#af66ed',
    950: '#000000',
  },
}
SCSS
$custom: #af66ed;
$custom-light: #ca94f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af66ed",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 237
  },
  "hsl": {
    "h": 272.444,
    "s": 78.947,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65045,
    "c": 0.20039,
    "h": 306.6
  },
  "luminance": 0.24731
}

Semantic roles & 50–950 ramp

primary
#AF66ED
secondary
#D6EDC2
accent
#DB0A6A
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF66ED

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

Preview Lab → · Contrast checker → · Palette generator →

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