#BA64FE#BA64FE

#BA64FE is a light, highly saturated violet. Relative luminance 0.267; OKLCH L 67.0% C 0.225 H 307.1°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#BA64FE
RGBrgb(186, 100, 254)
HSLhsl(274, 99%, 69%)
HSVhsv(274, 61%, 100%)
CMYKcmyk(26.8%, 60.6%, 0%, 0.4%)
CIE-LABlab(58.70, 60.92, -63.41)
CIE-LCHlch(58.70, 87.93, 313.85°)
OKLaboklab(67.02% 0.1354 -0.1791)
OKLCHoklch(67.02% 0.225 307.1)
XYZxyz(42.6925, 26.7097, 96.6531)
Luminance0.2671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA64FE #A8FE64
analogous
#6D64FE #BA64FE #FE64F5
triadic
#BA64FE #FEBA64 #64FEBA
tetradic
#BA64FE #FE6D64 #A8FE64 #64F5FE
square
#BA64FE #FE6D64 #A8FE64 #64F5FE
split-complementary
#BA64FE #F5FE64 #64FE6D
monochromatic
#8101E6 #9F27FE #BA64FE #D5A1FE #F0DEFF

Accessibility & contrast

On white

3.31
#BA64FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#BA64FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA64FE
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA64FE#FFFFFF#000000##000000
##BA64FE1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#128AFF
Deuteranopia (green-blind)
#488EFA
Tritanopia (blue-blind)
#AF83A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba64fe;
/* rgb */ color: rgb(186, 100, 254);
/* oklch */ color: oklch(67.0% 0.225 307.1);
Tailwind
colors: {
  custom: {
    50: '#d394ff',
    500: '#ba64fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba64fe;
$custom-light: #d394ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba64fe",
  "rgb": {
    "r": 186,
    "g": 100,
    "b": 254
  },
  "hsl": {
    "h": 273.506,
    "s": 98.718,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67023,
    "c": 0.22453,
    "h": 307.1
  },
  "luminance": 0.26709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA64FE

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

Preview Lab → · Contrast checker → · Palette generator →

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