#BA6BFC#BA6BFC

#BA6BFC is a light, highly saturated violet. Relative luminance 0.280; OKLCH L 67.8% C 0.213 H 306.7°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#BA6BFC
RGBrgb(186, 107, 252)
HSLhsl(273, 96%, 70%)
HSVhsv(273, 58%, 99%)
CMYKcmyk(26.2%, 57.5%, 0%, 1.2%)
CIE-LABlab(59.87, 57.02, -60.43)
CIE-LCHlch(59.87, 83.09, 313.33°)
OKLaboklab(67.84% 0.1271 -0.1704)
OKLCHoklch(67.84% 0.213 306.7)
XYZxyz(43.0744, 27.9832, 95.2087)
Luminance0.2798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BFC #ADFC6B
analogous
#726BFC #BA6BFC #FC6BF5
triadic
#BA6BFC #FCBA6B #6BFCBA
tetradic
#BA6BFC #FC726B #ADFC6B #6BF5FC
square
#BA6BFC #FC726B #ADFC6B #6BF5FC
split-complementary
#BA6BFC #F5FC6B #6BFC72
monochromatic
#8005E8 #9E2FFB #BA6BFC #D6A7FD #F1E1FE

Accessibility & contrast

On white

3.18
#BA6BFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#BA6BFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BFC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BFC#FFFFFF#000000##000000
##BA6BFC1.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#308DFF
Deuteranopia (green-blind)
#5291F9
Tritanopia (blue-blind)
#AF87AA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6bfc;
/* rgb */ color: rgb(186, 107, 252);
/* oklch */ color: oklch(67.8% 0.213 306.7);
Tailwind
colors: {
  custom: {
    50: '#d299fe',
    500: '#ba6bfc',
    950: '#000000',
  },
}
SCSS
$custom: #ba6bfc;
$custom-light: #d299fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6bfc",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 252
  },
  "hsl": {
    "h": 272.69,
    "s": 96.026,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67836,
    "c": 0.21261,
    "h": 306.7
  },
  "luminance": 0.27983
}

Semantic roles & 50–950 ramp

primary
#BA6BFC
secondary
#E0F5CE
accent
#E60068
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA6BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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