#BA5BEF#BA5BEF

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

Color values

HEX#BA5BEF
RGBrgb(186, 91, 239)
HSLhsl(279, 82%, 65%)
HSVhsv(279, 62%, 94%)
CMYKcmyk(22.2%, 61.9%, 0%, 6.3%)
CIE-LABlab(56.24, 61.95, -59.04)
CIE-LCHlch(56.24, 85.58, 316.38°)
OKLaboklab(64.95% 0.1462 -0.1662)
OKLCHoklch(64.95% 0.221 311.3)
XYZxyz(39.5679, 24.1542, 84.2225)
Luminance0.2415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BEF #90EF5B
analogous
#705BEF #BA5BEF #EF5BDA
triadic
#BA5BEF #EFBA5B #5BEFBA
tetradic
#BA5BEF #EF705B #90EF5B #5BDAEF
square
#BA5BEF #EF705B #90EF5B #5BDAEF
split-complementary
#BA5BEF #DAEF5B #5BEF70
monochromatic
#8012BD #A323EA #BA5BEF #D193F4 #E9CBFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA5BEF#FFFFFF#000000##000000
##BA5BEF1.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)
#1682F4
Deuteranopia (green-blind)
#4D89EC
Tritanopia (blue-blind)
#B4789D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5bef;
/* rgb */ color: rgb(186, 91, 239);
/* oklch */ color: oklch(65.0% 0.221 311.3);
Tailwind
colors: {
  custom: {
    50: '#d28ff5',
    500: '#ba5bef',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bef;
$custom-light: #d28ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bef",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 278.514,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64952,
    "c": 0.22141,
    "h": 311.3
  },
  "luminance": 0.24153
}

Semantic roles & 50–950 ramp

primary
#BA5BEF
secondary
#CCECBA
accent
#DF0754
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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