#BA56FF#BA56FF

#BA56FF is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 65.4% C 0.244 H 308.2°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#BA56FF
RGBrgb(186, 86, 255)
HSLhsl(276, 100%, 67%)
HSVhsv(276, 66%, 100%)
CMYKcmyk(27.1%, 66.3%, 0%, 0%)
CIE-LABlab(56.40, 67.62, -67.67)
CIE-LCHlch(56.40, 95.66, 314.98°)
OKLaboklab(65.38% 0.1508 -0.1916)
OKLCHoklch(65.38% 0.244 308.2)
XYZxyz(41.6238, 24.3153, 97.0889)
Luminance0.2432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56FF #9BFF56
analogous
#6656FF #BA56FF #FF56F0
triadic
#BA56FF #FFBA56 #56FFBA
tetradic
#BA56FF #FF6656 #9BFF56 #56F0FF
square
#BA56FF #FF6656 #9BFF56 #56F0FF
split-complementary
#BA56FF #F0FF56 #56FF66
monochromatic
#8100DB #A119FF #BA56FF #D393FF #ECD0FF

Accessibility & contrast

On white

3.58
#BA56FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#BA56FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56FF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56FF#FFFFFF#000000##000000
##BA56FF1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#3288FB
Tritanopia (blue-blind)
#AF7AA4
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba56ff;
/* rgb */ color: rgb(186, 86, 255);
/* oklch */ color: oklch(65.4% 0.244 308.2);
Tailwind
colors: {
  custom: {
    50: '#d38cff',
    500: '#ba56ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba56ff;
$custom-light: #d38cff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56ff",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 255
  },
  "hsl": {
    "h": 275.503,
    "s": 100,
    "l": 66.863
  },
  "oklch": {
    "l": 0.65381,
    "c": 0.24376,
    "h": 308.2
  },
  "luminance": 0.24315
}

Semantic roles & 50–950 ramp

primary
#BA56FF
secondary
#D3F3BD
accent
#E6005E
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150D18
muted
#837D86

Preview Lab

Preview with #BA56FF

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

Preview Lab → · Contrast checker → · Palette generator →

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