#AB66EB#AB66EB

#AB66EB is a light, vivid violet. Relative luminance 0.242; OKLCH L 64.5% C 0.197 H 305.5°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AB66EB
RGBrgb(171, 102, 235)
HSLhsl(271, 77%, 66%)
HSVhsv(271, 57%, 92%)
CMYKcmyk(27.2%, 56.6%, 0%, 7.8%)
CIE-LABlab(56.25, 52.15, -56.89)
CIE-LCHlch(56.25, 77.18, 312.51°)
OKLaboklab(64.49% 0.1145 -0.1604)
OKLCHoklch(64.49% 0.197 305.5)
XYZxyz(36.5381, 24.1591, 81.3194)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB66EB #A6EB66
analogous
#6866EB #AB66EB #EB66E8
triadic
#AB66EB #EBAB66 #66EBAB
tetradic
#AB66EB #EB6866 #A6EB66 #66E8EB
square
#AB66EB #EB6866 #A6EB66 #66E8EB
split-complementary
#AB66EB #E8EB66 #66EB68
monochromatic
#6E19BE #8D30E4 #AB66EB #C99CF2 #E6D2F9

Accessibility & contrast

On white

3.60
#AB66EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#AB66EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB66EB
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB66EB#FFFFFF#000000##000000
##AB66EB1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3285EF
Deuteranopia (green-blind)
#4D87E8
Tritanopia (blue-blind)
#A0809F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ab66eb;
/* rgb */ color: rgb(171, 102, 235);
/* oklch */ color: oklch(64.5% 0.197 305.5);
Tailwind
colors: {
  custom: {
    50: '#c794f2',
    500: '#ab66eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab66eb;
$custom-light: #c794f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab66eb",
  "rgb": {
    "r": 171,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 271.128,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64493,
    "c": 0.1971,
    "h": 305.5
  },
  "luminance": 0.24159
}

Semantic roles & 50–950 ramp

primary
#AB66EB
secondary
#D6ECC1
accent
#D90C6F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #AB66EB

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

Preview Lab → · Contrast checker → · Palette generator →

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