#BA5FEB#BA5FEB

#BA5FEB is a light, highly saturated violet. Relative luminance 0.246; OKLCH L 65.2% C 0.212 H 311.9°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#BA5FEB
RGBrgb(186, 95, 235)
HSLhsl(279, 78%, 65%)
HSVhsv(279, 60%, 92%)
CMYKcmyk(20.9%, 59.6%, 0%, 7.8%)
CIE-LABlab(56.71, 59.22, -56.06)
CIE-LCHlch(56.71, 81.54, 316.57°)
OKLaboklab(65.21% 0.1416 -0.1575)
OKLCHoklch(65.21% 0.212 311.9)
XYZxyz(39.3346, 24.6226, 81.2617)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FEB #90EB5F
analogous
#745FEB #BA5FEB #EB5FD6
triadic
#BA5FEB #EBBA5F #5FEBBA
tetradic
#BA5FEB #EB745F #90EB5F #5FD6EB
square
#BA5FEB #EB745F #90EB5F #5FD6EB
split-complementary
#BA5FEB #D6EB5F #5FEB74
monochromatic
#8017B9 #A329E4 #BA5FEB #D195F2 #E9CCF9

Accessibility & contrast

On white

3.54
#BA5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#BA5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FEB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FEB#FFFFFF#000000##000000
##BA5FEB1.003.545.925.92
#FFFFFF3.541.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C83EF
Deuteranopia (green-blind)
#548AE8
Tritanopia (blue-blind)
#B4799C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5feb;
/* rgb */ color: rgb(186, 95, 235);
/* oklch */ color: oklch(65.2% 0.212 311.9);
Tailwind
colors: {
  custom: {
    50: '#d291f2',
    500: '#ba5feb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5feb;
$custom-light: #d291f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5feb",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 279,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.65214,
    "c": 0.2118,
    "h": 311.9
  },
  "luminance": 0.24622
}

Semantic roles & 50–950 ramp

primary
#BA5FEB
secondary
#CCEBBB
accent
#DA0B54
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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