#BA5CF6#BA5CF6

#BA5CF6 is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.5% C 0.227 H 309.6°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#BA5CF6
RGBrgb(186, 92, 246)
HSLhsl(277, 90%, 66%)
HSVhsv(277, 63%, 96%)
CMYKcmyk(24.4%, 62.6%, 0%, 3.5%)
CIE-LABlab(56.83, 62.97, -61.99)
CIE-LCHlch(56.83, 88.37, 315.45°)
OKLaboklab(65.51% 0.1448 -0.1749)
OKLCHoklch(65.51% 0.227 309.6)
XYZxyz(40.7082, 24.7480, 89.8033)
Luminance0.2475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CF6 #98F65C
analogous
#6D5CF6 #BA5CF6 #F65CE5
triadic
#BA5CF6 #F6BA5C #5CF6BA
tetradic
#BA5CF6 #F66D5C #98F65C #5CE5F6
square
#BA5CF6 #F66D5C #98F65C #5CE5F6
split-complementary
#BA5CF6 #E5F65C #5CF66D
monochromatic
#810BCC #A122F3 #BA5CF6 #D396F9 #EBD0FC

Accessibility & contrast

On white

3.53
#BA5CF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#BA5CF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CF6
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CF6#FFFFFF#000000##000000
##BA5CF61.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FB
Deuteranopia (green-blind)
#478AF2
Tritanopia (blue-blind)
#B27BA1
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5cf6;
/* rgb */ color: rgb(186, 92, 246);
/* oklch */ color: oklch(65.5% 0.227 309.6);
Tailwind
colors: {
  custom: {
    50: '#d38ffa',
    500: '#ba5cf6',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cf6;
$custom-light: #d38ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cf6",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 246
  },
  "hsl": {
    "h": 276.623,
    "s": 89.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.6551,
    "c": 0.2271,
    "h": 309.6
  },
  "luminance": 0.24747
}

Semantic roles & 50–950 ramp

primary
#BA5CF6
secondary
#D1F0BE
accent
#E60059
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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