#BA66F7#BA66F7

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

Color values

HEX#BA66F7
RGBrgb(186, 102, 247)
HSLhsl(275, 90%, 68%)
HSVhsv(275, 59%, 97%)
CMYKcmyk(24.7%, 58.7%, 0%, 3.1%)
CIE-LABlab(58.66, 58.40, -59.62)
CIE-LCHlch(58.66, 83.45, 314.41°)
OKLaboklab(66.86% 0.1332 -0.168)
OKLCHoklch(66.86% 0.214 308.4)
XYZxyz(41.7862, 26.6579, 90.9218)
Luminance0.2666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66F7 #A3F766
analogous
#7166F7 #BA66F7 #F766EB
triadic
#BA66F7 #F7BA66 #66F7BA
tetradic
#BA66F7 #F77166 #A3F766 #66EBF7
square
#BA66F7 #F77166 #A3F766 #66EBF7
split-complementary
#BA66F7 #EBF766 #66F771
monochromatic
#810BD7 #A02CF4 #BA66F7 #D4A0FA #EEDAFD

Accessibility & contrast

On white

3.32
#BA66F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#BA66F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66F7
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66F7#FFFFFF#000000##000000
##BA66F71.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8AFC
Deuteranopia (green-blind)
#518EF4
Tritanopia (blue-blind)
#B182A5
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba66f7;
/* rgb */ color: rgb(186, 102, 247);
/* oklch */ color: oklch(66.9% 0.214 308.4);
Tailwind
colors: {
  custom: {
    50: '#d295fa',
    500: '#ba66f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba66f7;
$custom-light: #d295fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66f7",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 247
  },
  "hsl": {
    "h": 274.759,
    "s": 90.062,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66856,
    "c": 0.21437,
    "h": 308.4
  },
  "luminance": 0.26657
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA66F7

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

Preview Lab → · Contrast checker → · Palette generator →

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