#AB66EC#AB66EC

#AB66EC is a light, vivid violet. Relative luminance 0.242; OKLCH L 64.6% C 0.198 H 305.3°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AB66EC
RGBrgb(171, 102, 236)
HSLhsl(271, 78%, 66%)
HSVhsv(271, 57%, 93%)
CMYKcmyk(27.5%, 56.8%, 0%, 7.5%)
CIE-LABlab(56.30, 52.38, -57.36)
CIE-LCHlch(56.30, 77.68, 312.40°)
OKLaboklab(64.55% 0.1145 -0.1618)
OKLCHoklch(64.55% 0.198 305.3)
XYZxyz(36.6830, 24.2170, 82.0825)
Luminance0.2422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB66EC #A7EC66
analogous
#6866EC #AB66EC #EC66EA
triadic
#AB66EC #ECAB66 #66ECAB
tetradic
#AB66EC #EC6866 #A7EC66 #66EAEC
square
#AB66EC #EC6866 #A7EC66 #66EAEC
split-complementary
#AB66EC #EAEC66 #66EC68
monochromatic
#6E18C0 #8D30E5 #AB66EC #C99CF3 #E7D3FA

Accessibility & contrast

On white

3.59
#AB66EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#AB66EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB66EC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB66EC#FFFFFF#000000##000000
##AB66EC1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3085F0
Deuteranopia (green-blind)
#4C87E9
Tritanopia (blue-blind)
#A0809F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ab66ec;
/* rgb */ color: rgb(171, 102, 236);
/* oklch */ color: oklch(64.6% 0.198 305.3);
Tailwind
colors: {
  custom: {
    50: '#c894f3',
    500: '#ab66ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab66ec;
$custom-light: #c894f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab66ec",
  "rgb": {
    "r": 171,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 270.896,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64554,
    "c": 0.19822,
    "h": 305.3
  },
  "luminance": 0.24217
}

Semantic roles & 50–950 ramp

primary
#AB66EC
secondary
#D6EDC1
accent
#DA0B70
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #AB66EC

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

Preview Lab → · Contrast checker → · Palette generator →

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