#BA66E8#BA66E8

#BA66E8 is a light, vivid violet. Relative luminance 0.258; OKLCH L 66.0% C 0.199 H 312.0°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#BA66E8
RGBrgb(186, 102, 232)
HSLhsl(279, 74%, 65%)
HSVhsv(279, 56%, 91%)
CMYKcmyk(19.8%, 56%, 0%, 9%)
CIE-LABlab(57.82, 55.15, -52.61)
CIE-LCHlch(57.82, 76.22, 316.35°)
OKLaboklab(65.97% 0.1329 -0.1475)
OKLCHoklch(65.97% 0.199 312)
XYZxyz(39.5640, 25.7690, 79.2180)
Luminance0.2577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66E8 #94E866
analogous
#7966E8 #BA66E8 #E866D5
triadic
#BA66E8 #E8BA66 #66E8BA
tetradic
#BA66E8 #E87966 #94E866 #66D5E8
square
#BA66E8 #E87966 #94E866 #66D5E8
split-complementary
#BA66E8 #D5E866 #66E879
monochromatic
#811CB8 #A231E0 #BA66E8 #D29BF0 #EAD0F8

Accessibility & contrast

On white

3.41
#BA66E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#BA66E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66E8
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66E8#FFFFFF#000000##000000
##BA66E81.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F87EC
Deuteranopia (green-blind)
#5E8DE5
Tritanopia (blue-blind)
#B57D9D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba66e8;
/* rgb */ color: rgb(186, 102, 232);
/* oklch */ color: oklch(66.0% 0.199 312.0);
Tailwind
colors: {
  custom: {
    50: '#d295f0',
    500: '#ba66e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba66e8;
$custom-light: #d295f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66e8",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 232
  },
  "hsl": {
    "h": 278.769,
    "s": 73.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65972,
    "c": 0.19851,
    "h": 312
  },
  "luminance": 0.25768
}

Semantic roles & 50–950 ramp

primary
#BA66E8
secondary
#CFEBBF
accent
#D61056
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA66E8

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

Preview Lab → · Contrast checker → · Palette generator →

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