#BA5BF7#BA5BF7

#BA5BF7 is a light, highly saturated violet. Relative luminance 0.246; OKLCH L 65.5% C 0.229 H 309.5°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#BA5BF7
RGBrgb(186, 91, 247)
HSLhsl(277, 91%, 66%)
HSVhsv(277, 63%, 97%)
CMYKcmyk(24.7%, 63.2%, 0%, 3.1%)
CIE-LABlab(56.72, 63.65, -62.72)
CIE-LCHlch(56.72, 89.36, 315.42°)
OKLaboklab(65.45% 0.1459 -0.1771)
OKLCHoklch(65.45% 0.229 309.5)
XYZxyz(40.7760, 24.6374, 90.5851)
Luminance0.2464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BF7 #98F75B
analogous
#6C5BF7 #BA5BF7 #F75BE6
triadic
#BA5BF7 #F7BA5B #5BF7BA
tetradic
#BA5BF7 #F76C5B #98F75B #5BE6F7
square
#BA5BF7 #F76C5B #98F75B #5BE6F7
split-complementary
#BA5BF7 #E6F75B #5BF76C
monochromatic
#810ACE #A121F4 #BA5BF7 #D395FA #EBD0FD

Accessibility & contrast

On white

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

On black

5.93
#BA5BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BF7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BF7#FFFFFF#000000##000000
##BA5BF71.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FC
Deuteranopia (green-blind)
#4489F3
Tritanopia (blue-blind)
#B17AA1
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5bf7;
/* rgb */ color: rgb(186, 91, 247);
/* oklch */ color: oklch(65.5% 0.229 309.5);
Tailwind
colors: {
  custom: {
    50: '#d38ffb',
    500: '#ba5bf7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bf7;
$custom-light: #d38ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bf7",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 247
  },
  "hsl": {
    "h": 276.538,
    "s": 90.698,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65451,
    "c": 0.22944,
    "h": 309.5
  },
  "luminance": 0.24637
}

Semantic roles & 50–950 ramp

primary
#BA5BF7
secondary
#D1F0BD
accent
#E6005A
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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