#BA5CF9#BA5CF9

#BA5CF9 is a light, highly saturated violet. Relative luminance 0.249; OKLCH L 65.7% C 0.230 H 309.0°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#BA5CF9
RGBrgb(186, 92, 249)
HSLhsl(276, 93%, 67%)
HSVhsv(276, 63%, 98%)
CMYKcmyk(25.3%, 63.1%, 0%, 2.4%)
CIE-LABlab(57.01, 63.62, -63.37)
CIE-LCHlch(57.01, 89.79, 315.11°)
OKLaboklab(65.7% 0.1447 -0.1789)
OKLCHoklch(65.7% 0.23 309)
XYZxyz(41.1723, 24.9336, 92.2479)
Luminance0.2493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CF9 #9BF95C
analogous
#6C5CF9 #BA5CF9 #F95CE9
triadic
#BA5CF9 #F9BA5C #5CF9BA
tetradic
#BA5CF9 #F96C5C #9BF95C #5CE9F9
square
#BA5CF9 #F96C5C #9BF95C #5CE9F9
split-complementary
#BA5CF9 #E9F95C #5CF96C
monochromatic
#8108D3 #A121F7 #BA5CF9 #D397FB #ECD2FD

Accessibility & contrast

On white

3.51
#BA5CF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#BA5CF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CF9
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CF9#FFFFFF#000000##000000
##BA5CF91.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FE
Deuteranopia (green-blind)
#438AF5
Tritanopia (blue-blind)
#B17CA3
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5cf9;
/* rgb */ color: rgb(186, 92, 249);
/* oklch */ color: oklch(65.7% 0.230 309.0);
Tailwind
colors: {
  custom: {
    50: '#d38ffc',
    500: '#ba5cf9',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cf9;
$custom-light: #d38ffc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cf9",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 249
  },
  "hsl": {
    "h": 275.924,
    "s": 92.899,
    "l": 66.863
  },
  "oklch": {
    "l": 0.657,
    "c": 0.23013,
    "h": 309
  },
  "luminance": 0.24933
}

Semantic roles & 50–950 ramp

primary
#BA5CF9
secondary
#D3F2BF
accent
#E6005C
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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