#BA5AF2#BA5AF2

#BA5AF2 is a light, highly saturated violet. Relative luminance 0.242; OKLCH L 65.0% C 0.226 H 310.7°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#BA5AF2
RGBrgb(186, 90, 242)
HSLhsl(278, 85%, 65%)
HSVhsv(278, 63%, 95%)
CMYKcmyk(23.1%, 62.8%, 0%, 5.1%)
CIE-LABlab(56.25, 63.05, -60.70)
CIE-LCHlch(56.25, 87.52, 316.09°)
OKLaboklab(65.02% 0.1473 -0.1711)
OKLCHoklch(65.02% 0.226 310.7)
XYZxyz(39.9299, 24.1631, 86.5477)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AF2 #92F25A
analogous
#6E5AF2 #BA5AF2 #F25ADE
triadic
#BA5AF2 #F2BA5A #5AF2BA
tetradic
#BA5AF2 #F26E5A #92F25A #5ADEF2
square
#BA5AF2 #F26E5A #92F25A #5ADEF2
split-complementary
#BA5AF2 #DEF25A #5AF26E
monochromatic
#800FC2 #A221EE #BA5AF2 #D293F6 #E9CBFB

Accessibility & contrast

On white

3.60
#BA5AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#BA5AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AF2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AF2#FFFFFF#000000##000000
##BA5AF21.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0282F7
Deuteranopia (green-blind)
#4989EE
Tritanopia (blue-blind)
#B3789E
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5af2;
/* rgb */ color: rgb(186, 90, 242);
/* oklch */ color: oklch(65.0% 0.226 310.7);
Tailwind
colors: {
  custom: {
    50: '#d38ef7',
    500: '#ba5af2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5af2;
$custom-light: #d38ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5af2",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 277.895,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.65016,
    "c": 0.22576,
    "h": 310.7
  },
  "luminance": 0.24162
}

Semantic roles & 50–950 ramp

primary
#BA5AF2
secondary
#CDEEBA
accent
#E20456
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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