#BA66F2#BA66F2

#BA66F2 is a light, highly saturated violet. Relative luminance 0.264; OKLCH L 66.6% C 0.209 H 309.5°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#BA66F2
RGBrgb(186, 102, 242)
HSLhsl(276, 84%, 67%)
HSVhsv(276, 58%, 95%)
CMYKcmyk(23.1%, 57.9%, 0%, 5.1%)
CIE-LABlab(58.37, 57.30, -57.30)
CIE-LCHlch(58.37, 81.04, 315.00°)
OKLaboklab(66.56% 0.1331 -0.1612)
OKLCHoklch(66.56% 0.209 309.5)
XYZxyz(41.0250, 26.3534, 86.9127)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66F2 #9EF266
analogous
#7466F2 #BA66F2 #F266E4
triadic
#BA66F2 #F2BA66 #66F2BA
tetradic
#BA66F2 #F27466 #9EF266 #66E4F2
square
#BA66F2 #F27466 #9EF266 #66E4F2
split-complementary
#BA66F2 #E4F266 #66F274
monochromatic
#8111CC #A12EED #BA66F2 #D39EF7 #EDD7FC

Accessibility & contrast

On white

3.35
#BA66F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#BA66F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66F2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66F2#FFFFFF#000000##000000
##BA66F21.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3389F6
Deuteranopia (green-blind)
#568EEF
Tritanopia (blue-blind)
#B280A3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba66f2;
/* rgb */ color: rgb(186, 102, 242);
/* oklch */ color: oklch(66.6% 0.209 309.5);
Tailwind
colors: {
  custom: {
    50: '#d295f7',
    500: '#ba66f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba66f2;
$custom-light: #d295f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66f2",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 276,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66556,
    "c": 0.20907,
    "h": 309.5
  },
  "luminance": 0.26353
}

Semantic roles & 50–950 ramp

primary
#BA66F2
secondary
#D6F0C4
accent
#E1055D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA66F2

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

Preview Lab → · Contrast checker → · Palette generator →

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