#BA66EF#BA66EF

#BA66EF is a light, highly saturated violet. Relative luminance 0.262; OKLCH L 66.4% C 0.206 H 310.3°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#BA66EF
RGBrgb(186, 102, 239)
HSLhsl(277, 81%, 67%)
HSVhsv(277, 57%, 94%)
CMYKcmyk(22.2%, 57.3%, 0%, 6.3%)
CIE-LABlab(58.20, 56.65, -55.90)
CIE-LCHlch(58.20, 79.59, 315.38°)
OKLaboklab(66.38% 0.1331 -0.1571)
OKLCHoklch(66.38% 0.206 310.3)
XYZxyz(40.5781, 26.1746, 84.5592)
Luminance0.2617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66EF #9BEF66
analogous
#7666EF #BA66EF #EF66E0
triadic
#BA66EF #EFBA66 #66EFBA
tetradic
#BA66EF #EF7666 #9BEF66 #66E0EF
square
#BA66EF #EF7666 #9BEF66 #66E0EF
split-complementary
#BA66EF #E0EF66 #66EF76
monochromatic
#8115C6 #A12FE9 #BA66EF #D39DF5 #ECD5FB

Accessibility & contrast

On white

3.37
#BA66EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#BA66EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66EF
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66EF#FFFFFF#000000##000000
##BA66EF1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3788F3
Deuteranopia (green-blind)
#588DEC
Tritanopia (blue-blind)
#B37FA1
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba66ef;
/* rgb */ color: rgb(186, 102, 239);
/* oklch */ color: oklch(66.4% 0.206 310.3);
Tailwind
colors: {
  custom: {
    50: '#d295f5',
    500: '#ba66ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba66ef;
$custom-light: #d295f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66ef",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 276.788,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.66378,
    "c": 0.2059,
    "h": 310.3
  },
  "luminance": 0.26174
}

Semantic roles & 50–950 ramp

primary
#BA66EF
secondary
#D3EEC2
accent
#DD085B
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA66EF

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

Preview Lab → · Contrast checker → · Palette generator →

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