#BA66FB#BA66FB

#BA66FB is a light, highly saturated violet. Relative luminance 0.269; OKLCH L 67.1% C 0.219 H 307.5°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#BA66FB
RGBrgb(186, 102, 251)
HSLhsl(274, 95%, 69%)
HSVhsv(274, 59%, 98%)
CMYKcmyk(25.9%, 59.4%, 0%, 1.6%)
CIE-LABlab(58.89, 59.28, -61.46)
CIE-LCHlch(58.89, 85.39, 313.96°)
OKLaboklab(67.1% 0.1331 -0.1734)
OKLCHoklch(67.1% 0.219 307.5)
XYZxyz(42.4101, 26.9074, 94.2075)
Luminance0.2691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66FB #A7FB66
analogous
#7066FB #BA66FB #FB66F1
triadic
#BA66FB #FBBA66 #66FBBA
tetradic
#BA66FB #FB7066 #A7FB66 #66F1FB
square
#BA66FB #FB7066 #A7FB66 #66F1FB
split-complementary
#BA66FB #F1FB66 #66FB70
monochromatic
#8106E1 #9F2AF9 #BA66FB #D5A2FD #F0DDFE

Accessibility & contrast

On white

3.29
#BA66FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#BA66FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66FB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66FB#FFFFFF#000000##000000
##BA66FB1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#238BFF
Deuteranopia (green-blind)
#4D8FF8
Tritanopia (blue-blind)
#B083A7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba66fb;
/* rgb */ color: rgb(186, 102, 251);
/* oklch */ color: oklch(67.1% 0.219 307.5);
Tailwind
colors: {
  custom: {
    50: '#d395fd',
    500: '#ba66fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba66fb;
$custom-light: #d395fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66fb",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 251
  },
  "hsl": {
    "h": 273.826,
    "s": 94.904,
    "l": 69.216
  },
  "oklch": {
    "l": 0.67099,
    "c": 0.21861,
    "h": 307.5
  },
  "luminance": 0.26907
}

Semantic roles & 50–950 ramp

primary
#BA66FB
secondary
#DCF4C9
accent
#E60064
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #BA66FB

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

Preview Lab → · Contrast checker → · Palette generator →

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