#BA5CF4#BA5CF4

#BA5CF4 is a light, highly saturated violet. Relative luminance 0.246; OKLCH L 65.4% C 0.225 H 310.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#BA5CF4
RGBrgb(186, 92, 244)
HSLhsl(277, 87%, 66%)
HSVhsv(277, 62%, 96%)
CMYKcmyk(23.8%, 62.3%, 0%, 4.3%)
CIE-LABlab(56.71, 62.55, -61.07)
CIE-LCHlch(56.71, 87.42, 315.68°)
OKLaboklab(65.39% 0.1449 -0.1722)
OKLCHoklch(65.39% 0.225 310.1)
XYZxyz(40.4028, 24.6259, 88.1953)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CF4 #96F45C
analogous
#6E5CF4 #BA5CF4 #F45CE2
triadic
#BA5CF4 #F4BA5C #5CF4BA
tetradic
#BA5CF4 #F46E5C #96F45C #5CE2F4
square
#BA5CF4 #F46E5C #96F45C #5CE2F4
split-complementary
#BA5CF4 #E2F45C #5CF46E
monochromatic
#810EC8 #A223F0 #BA5CF4 #D295F8 #EBCFFC

Accessibility & contrast

On white

3.54
#BA5CF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#BA5CF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CF4
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CF4#FFFFFF#000000##000000
##BA5CF41.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0784F9
Deuteranopia (green-blind)
#498AF0
Tritanopia (blue-blind)
#B27AA0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5cf4;
/* rgb */ color: rgb(186, 92, 244);
/* oklch */ color: oklch(65.4% 0.225 310.1);
Tailwind
colors: {
  custom: {
    50: '#d38ff8',
    500: '#ba5cf4',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cf4;
$custom-light: #d38ff8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cf4",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 244
  },
  "hsl": {
    "h": 277.105,
    "s": 87.356,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65385,
    "c": 0.22508,
    "h": 310.1
  },
  "luminance": 0.24625
}

Semantic roles & 50–950 ramp

primary
#BA5CF4
secondary
#D0EFBD
accent
#E40258
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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