#BA66EB#BA66EB

#BA66EB is a light, highly saturated violet. Relative luminance 0.259; OKLCH L 66.1% C 0.202 H 311.2°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#BA66EB
RGBrgb(186, 102, 235)
HSLhsl(278, 77%, 66%)
HSVhsv(278, 57%, 92%)
CMYKcmyk(20.9%, 56.6%, 0%, 7.8%)
CIE-LABlab(57.98, 55.79, -54.02)
CIE-LCHlch(57.98, 77.66, 315.92°)
OKLaboklab(66.15% 0.133 -0.1516)
OKLCHoklch(66.15% 0.202 311.2)
XYZxyz(39.9937, 25.9409, 81.4814)
Luminance0.2594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66EB #97EB66
analogous
#7766EB #BA66EB #EB66D9
triadic
#BA66EB #EBBA66 #66EBBA
tetradic
#BA66EB #EB7766 #97EB66 #66D9EB
square
#BA66EB #EB7766 #97EB66 #66D9EB
split-complementary
#BA66EB #D9EB66 #66EB77
monochromatic
#8119BE #A230E4 #BA66EB #D29CF2 #EBD2F9

Accessibility & contrast

On white

3.39
#BA66EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#BA66EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66EB
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66EB#FFFFFF#000000##000000
##BA66EB1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B87EF
Deuteranopia (green-blind)
#5B8DE8
Tritanopia (blue-blind)
#B47E9F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba66eb;
/* rgb */ color: rgb(186, 102, 235);
/* oklch */ color: oklch(66.1% 0.202 311.2);
Tailwind
colors: {
  custom: {
    50: '#d295f2',
    500: '#ba66eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba66eb;
$custom-light: #d295f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66eb",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 277.895,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.66145,
    "c": 0.20167,
    "h": 311.2
  },
  "luminance": 0.2594
}

Semantic roles & 50–950 ramp

primary
#BA66EB
secondary
#D1ECC1
accent
#D90C58
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA66EB

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

Preview Lab → · Contrast checker → · Palette generator →

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