#BA5BF2#BA5BF2

#BA5BF2 is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 65.1% C 0.224 H 310.6°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#BA5BF2
RGBrgb(186, 91, 242)
HSLhsl(278, 85%, 65%)
HSVhsv(278, 62%, 95%)
CMYKcmyk(23.1%, 62.4%, 0%, 5.1%)
CIE-LABlab(56.42, 62.59, -60.42)
CIE-LCHlch(56.42, 87.00, 316.01°)
OKLaboklab(65.14% 0.1461 -0.1703)
OKLCHoklch(65.14% 0.224 310.6)
XYZxyz(40.0148, 24.3329, 86.5760)
Luminance0.2433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BF2 #93F25B
analogous
#6E5BF2 #BA5BF2 #F25BDF
triadic
#BA5BF2 #F2BA5B #5BF2BA
tetradic
#BA5BF2 #F26E5B #93F25B #5BDFF2
square
#BA5BF2 #F26E5B #93F25B #5BDFF2
split-complementary
#BA5BF2 #DFF25B #5BF26E
monochromatic
#810FC3 #A222EE #BA5BF2 #D294F6 #EACCFB

Accessibility & contrast

On white

3.58
#BA5BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#BA5BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BF2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BF2#FFFFFF#000000##000000
##BA5BF21.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A83F7
Deuteranopia (green-blind)
#4A89EE
Tritanopia (blue-blind)
#B3799F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5bf2;
/* rgb */ color: rgb(186, 91, 242);
/* oklch */ color: oklch(65.1% 0.224 310.6);
Tailwind
colors: {
  custom: {
    50: '#d38ff7',
    500: '#ba5bf2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bf2;
$custom-light: #d38ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bf2",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 242
  },
  "hsl": {
    "h": 277.748,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65138,
    "c": 0.22442,
    "h": 310.6
  },
  "luminance": 0.24332
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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