#BA64F2#BA64F2

#BA64F2 is a light, highly saturated violet. Relative luminance 0.260; OKLCH L 66.3% C 0.212 H 309.8°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#BA64F2
RGBrgb(186, 100, 242)
HSLhsl(276, 85%, 67%)
HSVhsv(276, 59%, 95%)
CMYKcmyk(23.1%, 58.7%, 0%, 5.1%)
CIE-LABlab(58.00, 58.29, -57.89)
CIE-LCHlch(58.00, 82.15, 315.20°)
OKLaboklab(66.29% 0.1356 -0.1629)
OKLCHoklch(66.29% 0.212 309.8)
XYZxyz(40.8308, 25.9650, 86.8480)
Luminance0.2596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA64F2 #9CF264
analogous
#7364F2 #BA64F2 #F264E3
triadic
#BA64F2 #F2BA64 #64F2BA
tetradic
#BA64F2 #F27364 #9CF264 #64E3F2
square
#BA64F2 #F27364 #9CF264 #64E3F2
split-complementary
#BA64F2 #E3F264 #64F273
monochromatic
#8111CB #A12CED #BA64F2 #D39CF7 #ECD5FB

Accessibility & contrast

On white

3.39
#BA64F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#BA64F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA64F2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA64F2#FFFFFF#000000##000000
##BA64F21.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E88F7
Deuteranopia (green-blind)
#548DEF
Tritanopia (blue-blind)
#B27FA2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba64f2;
/* rgb */ color: rgb(186, 100, 242);
/* oklch */ color: oklch(66.3% 0.212 309.8);
Tailwind
colors: {
  custom: {
    50: '#d294f7',
    500: '#ba64f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba64f2;
$custom-light: #d294f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba64f2",
  "rgb": {
    "r": 186,
    "g": 100,
    "b": 242
  },
  "hsl": {
    "h": 276.338,
    "s": 84.524,
    "l": 67.059
  },
  "oklch": {
    "l": 0.66288,
    "c": 0.21194,
    "h": 309.8
  },
  "luminance": 0.25964
}

Semantic roles & 50–950 ramp

primary
#BA64F2
secondary
#D4EFC2
accent
#E1055B
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA64F2

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

Preview Lab → · Contrast checker → · Palette generator →

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