#BA5EF6#BA5EF6

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

Color values

HEX#BA5EF6
RGBrgb(186, 94, 246)
HSLhsl(276, 89%, 67%)
HSVhsv(276, 62%, 96%)
CMYKcmyk(24.4%, 61.8%, 0%, 3.5%)
CIE-LABlab(57.17, 62.04, -61.44)
CIE-LCHlch(57.17, 87.31, 315.28°)
OKLaboklab(65.76% 0.1426 -0.1733)
OKLCHoklch(65.76% 0.224 309.4)
XYZxyz(40.8837, 25.0991, 89.8618)
Luminance0.2510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EF6 #9AF65E
analogous
#6E5EF6 #BA5EF6 #F65EE6
triadic
#BA5EF6 #F6BA5E #5EF6BA
tetradic
#BA5EF6 #F66E5E #9AF65E #5EE6F6
square
#BA5EF6 #F66E5E #9AF65E #5EE6F6
split-complementary
#BA5EF6 #E6F65E #5EF66E
monochromatic
#810CCE #A124F3 #BA5EF6 #D398F9 #ECD2FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA5EF6#FFFFFF#000000##000000
##BA5EF61.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)
#0C85FB
Deuteranopia (green-blind)
#498BF2
Tritanopia (blue-blind)
#B27CA2
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5ef6;
/* rgb */ color: rgb(186, 94, 246);
/* oklch */ color: oklch(65.8% 0.224 309.4);
Tailwind
colors: {
  custom: {
    50: '#d390fa',
    500: '#ba5ef6',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ef6;
$custom-light: #d390fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ef6",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 276.316,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65758,
    "c": 0.22442,
    "h": 309.4
  },
  "luminance": 0.25098
}

Semantic roles & 50–950 ramp

primary
#BA5EF6
secondary
#D3F0BF
accent
#E6005B
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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