#BA66F8#BA66F8

#BA66F8 is a light, highly saturated violet. Relative luminance 0.267; OKLCH L 66.9% C 0.215 H 308.2°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#BA66F8
RGBrgb(186, 102, 248)
HSLhsl(275, 91%, 69%)
HSVhsv(275, 59%, 97%)
CMYKcmyk(25%, 58.9%, 0%, 2.7%)
CIE-LABlab(58.71, 58.62, -60.08)
CIE-LCHlch(58.71, 83.94, 314.29°)
OKLaboklab(66.92% 0.1331 -0.1693)
OKLCHoklch(66.92% 0.215 308.2)
XYZxyz(41.9409, 26.7198, 91.7367)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66F8 #A4F866
analogous
#7166F8 #BA66F8 #F866ED
triadic
#BA66F8 #F8BA66 #66F8BA
tetradic
#BA66F8 #F87166 #A4F866 #66EDF8
square
#BA66F8 #F87166 #A4F866 #66EDF8
split-complementary
#BA66F8 #EDF866 #66F871
monochromatic
#810ADA #A02BF5 #BA66F8 #D4A1FB #EFDBFD

Accessibility & contrast

On white

3.31
#BA66F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#BA66F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66F8
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66F8#FFFFFF#000000##000000
##BA66F81.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#298AFD
Deuteranopia (green-blind)
#508EF5
Tritanopia (blue-blind)
#B182A6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba66f8;
/* rgb */ color: rgb(186, 102, 248);
/* oklch */ color: oklch(66.9% 0.215 308.2);
Tailwind
colors: {
  custom: {
    50: '#d295fb',
    500: '#ba66f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba66f8;
$custom-light: #d295fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66f8",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 248
  },
  "hsl": {
    "h": 274.521,
    "s": 91.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66916,
    "c": 0.21542,
    "h": 308.2
  },
  "luminance": 0.26719
}

Semantic roles & 50–950 ramp

primary
#BA66F8
secondary
#DAF3C7
accent
#E60061
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA66F8

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

Preview Lab → · Contrast checker → · Palette generator →

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