#BA5DF9#BA5DF9

#BA5DF9 is a light, highly saturated violet. Relative luminance 0.251; OKLCH L 65.8% C 0.229 H 308.9°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#BA5DF9
RGBrgb(186, 93, 249)
HSLhsl(276, 93%, 67%)
HSVhsv(276, 63%, 98%)
CMYKcmyk(25.3%, 62.7%, 0%, 2.4%)
CIE-LABlab(57.18, 63.15, -63.09)
CIE-LCHlch(57.18, 89.27, 315.03°)
OKLaboklab(65.82% 0.1436 -0.1781)
OKLCHoklch(65.82% 0.229 308.9)
XYZxyz(41.2595, 25.1080, 92.2770)
Luminance0.2511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DF9 #9CF95D
analogous
#6C5DF9 #BA5DF9 #F95DEA
triadic
#BA5DF9 #F9BA5D #5DF9BA
tetradic
#BA5DF9 #F96C5D #9CF95D #5DEAF9
square
#BA5DF9 #F96C5D #9CF95D #5DEAF9
split-complementary
#BA5DF9 #EAF95D #5DF96C
monochromatic
#8108D4 #A122F7 #BA5DF9 #D398FB #ECD3FD

Accessibility & contrast

On white

3.49
#BA5DF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#BA5DF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DF9
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DF9#FFFFFF#000000##000000
##BA5DF91.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba5df9;
/* rgb */ color: rgb(186, 93, 249);
/* oklch */ color: oklch(65.8% 0.229 308.9);
Tailwind
colors: {
  custom: {
    50: '#d390fc',
    500: '#ba5df9',
    950: '#000000',
  },
}
SCSS
$custom: #ba5df9;
$custom-light: #d390fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5df9",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 249
  },
  "hsl": {
    "h": 275.769,
    "s": 92.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65822,
    "c": 0.2288,
    "h": 308.9
  },
  "luminance": 0.25107
}

Semantic roles & 50–950 ramp

primary
#BA5DF9
secondary
#D4F2C0
accent
#E6005D
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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