#BA66FC#BA66FC

#BA66FC is a light, highly saturated violet. Relative luminance 0.270; OKLCH L 67.2% C 0.220 H 307.3°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#BA66FC
RGBrgb(186, 102, 252)
HSLhsl(274, 96%, 69%)
HSVhsv(274, 60%, 99%)
CMYKcmyk(26.2%, 59.5%, 0%, 1.2%)
CIE-LABlab(58.95, 59.50, -61.92)
CIE-LCHlch(58.95, 85.87, 313.86°)
OKLaboklab(67.16% 0.1331 -0.1747)
OKLCHoklch(67.16% 0.22 307.3)
XYZxyz(42.5681, 26.9706, 95.0399)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66FC #A8FC66
analogous
#6F66FC #BA66FC #FC66F3
triadic
#BA66FC #FCBA66 #66FCBA
tetradic
#BA66FC #FC6F66 #A8FC66 #66F3FC
square
#BA66FC #FC6F66 #A8FC66 #66F3FC
split-complementary
#BA66FC #F3FC66 #66FC6F
monochromatic
#8104E3 #9F2AFB #BA66FC #D5A2FD #F0DEFE

Accessibility & contrast

On white

3.28
#BA66FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#BA66FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66FC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66FC#FFFFFF#000000##000000
##BA66FC1.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#218BFF
Deuteranopia (green-blind)
#4C8FF9
Tritanopia (blue-blind)
#B084A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba66fc;
/* rgb */ color: rgb(186, 102, 252);
/* oklch */ color: oklch(67.2% 0.220 307.3);
Tailwind
colors: {
  custom: {
    50: '#d395fe',
    500: '#ba66fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba66fc;
$custom-light: #d395fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66fc",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 252
  },
  "hsl": {
    "h": 273.6,
    "s": 96.154,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67161,
    "c": 0.21966,
    "h": 307.3
  },
  "luminance": 0.2697
}

Semantic roles & 50–950 ramp

primary
#BA66FC
secondary
#DCF5C9
accent
#E60065
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #BA66FC

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

Preview Lab → · Contrast checker → · Palette generator →

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