#BA5DF4#BA5DF4

#BA5DF4 is a light, highly saturated violet. Relative luminance 0.248; OKLCH L 65.5% C 0.224 H 310.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#BA5DF4
RGBrgb(186, 93, 244)
HSLhsl(277, 87%, 66%)
HSVhsv(277, 62%, 96%)
CMYKcmyk(23.8%, 61.9%, 0%, 4.3%)
CIE-LABlab(56.88, 62.08, -60.80)
CIE-LCHlch(56.88, 86.89, 315.60°)
OKLaboklab(65.51% 0.1438 -0.1714)
OKLCHoklch(65.51% 0.224 310)
XYZxyz(40.4900, 24.8003, 88.2244)
Luminance0.2480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DF4 #97F45D
analogous
#6E5DF4 #BA5DF4 #F45DE2
triadic
#BA5DF4 #F4BA5D #5DF4BA
tetradic
#BA5DF4 #F46E5D #97F45D #5DE2F4
square
#BA5DF4 #F46E5D #97F45D #5DE2F4
split-complementary
#BA5DF4 #E2F45D #5DF46E
monochromatic
#810EC9 #A224F0 #BA5DF4 #D296F8 #EBD0FC

Accessibility & contrast

On white

3.52
#BA5DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#BA5DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DF4
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DF4#FFFFFF#000000##000000
##BA5DF41.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F84F9
Deuteranopia (green-blind)
#4A8AF0
Tritanopia (blue-blind)
#B27BA0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5df4;
/* rgb */ color: rgb(186, 93, 244);
/* oklch */ color: oklch(65.5% 0.224 310.0);
Tailwind
colors: {
  custom: {
    50: '#d390f8',
    500: '#ba5df4',
    950: '#000000',
  },
}
SCSS
$custom: #ba5df4;
$custom-light: #d390f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5df4",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 244
  },
  "hsl": {
    "h": 276.954,
    "s": 87.283,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65509,
    "c": 0.22374,
    "h": 310
  },
  "luminance": 0.24799
}

Semantic roles & 50–950 ramp

primary
#BA5DF4
secondary
#D1EFBE
accent
#E40259
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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