#BA66DC#BA66DC

#BA66DC is a light, vivid purple. Relative luminance 0.251; OKLCH L 65.3% C 0.186 H 315.3°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#BA66DC
RGBrgb(186, 102, 220)
HSLhsl(283, 63%, 63%)
HSVhsv(283, 54%, 86%)
CMYKcmyk(15.5%, 53.6%, 0%, 13.7%)
CIE-LABlab(57.18, 52.63, -46.88)
CIE-LCHlch(57.18, 70.49, 318.31°)
OKLaboklab(65.3% 0.1321 -0.1308)
OKLCHoklch(65.3% 0.186 315.3)
XYZxyz(37.9173, 25.1103, 70.5457)
Luminance0.2511 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66DC #88DC66
analogous
#7F66DC #BA66DC #DC66C3
triadic
#BA66DC #DCBA66 #66DCBA
tetradic
#BA66DC #DC7F66 #88DC66 #66C3DC
square
#BA66DC #DC7F66 #88DC66 #66C3DC
split-complementary
#BA66DC #C3DC66 #66DC7F
monochromatic
#7E25A2 #A434D1 #BA66DC #D098E7 #E7CAF3

Accessibility & contrast

On white

3.49
#BA66DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#BA66DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66DC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66DC#FFFFFF#000000##000000
##BA66DC1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A84E0
Deuteranopia (green-blind)
#668CD9
Tritanopia (blue-blind)
#B87997
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba66dc;
/* rgb */ color: rgb(186, 102, 220);
/* oklch */ color: oklch(65.3% 0.186 315.3);
Tailwind
colors: {
  custom: {
    50: '#d195e7',
    500: '#ba66dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba66dc;
$custom-light: #d195e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66dc",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 282.712,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.65301,
    "c": 0.18592,
    "h": 315.3
  },
  "luminance": 0.25109
}

Semantic roles & 50–950 ramp

primary
#BA66DC
secondary
#C6E4BA
accent
#CB1B4E
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA66DC

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

Preview Lab → · Contrast checker → · Palette generator →

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