#BA66EC#BA66EC

#BA66EC is a light, highly saturated violet. Relative luminance 0.260; OKLCH L 66.2% C 0.203 H 311.0°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#BA66EC
RGBrgb(186, 102, 236)
HSLhsl(278, 78%, 66%)
HSVhsv(278, 57%, 93%)
CMYKcmyk(21.2%, 56.8%, 0%, 7.5%)
CIE-LABlab(58.04, 56.01, -54.49)
CIE-LCHlch(58.04, 78.14, 315.78°)
OKLaboklab(66.2% 0.133 -0.153)
OKLCHoklch(66.2% 0.203 311)
XYZxyz(40.1386, 25.9988, 82.2444)
Luminance0.2600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66EC #98EC66
analogous
#7766EC #BA66EC #EC66DB
triadic
#BA66EC #ECBA66 #66ECBA
tetradic
#BA66EC #EC7766 #98EC66 #66DBEC
square
#BA66EC #EC7766 #98EC66 #66DBEC
split-complementary
#BA66EC #DBEC66 #66EC77
monochromatic
#8118C0 #A130E5 #BA66EC #D39CF3 #EBD3FA

Accessibility & contrast

On white

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

On black

6.20
#BA66EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66EC
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66EC#FFFFFF#000000##000000
##BA66EC1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba66ec;
/* rgb */ color: rgb(186, 102, 236);
/* oklch */ color: oklch(66.2% 0.203 311.0);
Tailwind
colors: {
  custom: {
    50: '#d295f3',
    500: '#ba66ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba66ec;
$custom-light: #d295f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66ec",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 277.612,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.66203,
    "c": 0.20272,
    "h": 311
  },
  "luminance": 0.25998
}

Semantic roles & 50–950 ramp

primary
#BA66EC
secondary
#D1EDC1
accent
#DA0B59
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA66EC

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

Preview Lab → · Contrast checker → · Palette generator →

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