#BA66FF#BA66FF

#BA66FF is a light, highly saturated violet. Relative luminance 0.272; OKLCH L 67.3% C 0.223 H 306.7°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#BA66FF
RGBrgb(186, 102, 255)
HSLhsl(273, 100%, 70%)
HSVhsv(273, 60%, 100%)
CMYKcmyk(27.1%, 60%, 0%, 0%)
CIE-LABlab(59.12, 60.17, -63.29)
CIE-LCHlch(59.12, 87.32, 313.55°)
OKLaboklab(67.35% 0.133 -0.1788)
OKLCHoklch(67.35% 0.223 306.7)
XYZxyz(43.0473, 27.1623, 97.5634)
Luminance0.2716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66FF #ABFF66
analogous
#6D66FF #BA66FF #FF66F8
triadic
#BA66FF #FFBA66 #66FFBA
tetradic
#BA66FF #FF6D66 #ABFF66 #66F8FF
square
#BA66FF #FF6D66 #ABFF66 #66F8FF
split-complementary
#BA66FF #F8FF66 #66FF6D
monochromatic
#8100EB #9E29FF #BA66FF #D6A3FF #F1E0FF

Accessibility & contrast

On white

3.26
#BA66FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#BA66FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66FF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66FF#FFFFFF#000000##000000
##BA66FF1.003.266.436.43
#FFFFFF3.261.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#198BFF
Deuteranopia (green-blind)
#498FFB
Tritanopia (blue-blind)
#AF85A9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba66ff;
/* rgb */ color: rgb(186, 102, 255);
/* oklch */ color: oklch(67.3% 0.223 306.7);
Tailwind
colors: {
  custom: {
    50: '#d395ff',
    500: '#ba66ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba66ff;
$custom-light: #d395ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66ff",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 255
  },
  "hsl": {
    "h": 272.941,
    "s": 100,
    "l": 70
  },
  "oklch": {
    "l": 0.67346,
    "c": 0.22284,
    "h": 306.7
  },
  "luminance": 0.27162
}

Semantic roles & 50–950 ramp

primary
#BA66FF
secondary
#DEF6CB
accent
#E60068
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #BA66FF

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

Preview Lab → · Contrast checker → · Palette generator →

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