#BA5CF5#BA5CF5

#BA5CF5 is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.4% C 0.226 H 309.9°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#BA5CF5
RGBrgb(186, 92, 245)
HSLhsl(277, 88%, 66%)
HSVhsv(277, 62%, 96%)
CMYKcmyk(24.1%, 62.4%, 0%, 3.9%)
CIE-LABlab(56.77, 62.76, -61.53)
CIE-LCHlch(56.77, 87.89, 315.57°)
OKLaboklab(65.45% 0.1449 -0.1736)
OKLCHoklch(65.45% 0.226 309.9)
XYZxyz(40.5551, 24.6868, 88.9971)
Luminance0.2469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CF5 #97F55C
analogous
#6D5CF5 #BA5CF5 #F55CE3
triadic
#BA5CF5 #F5BA5C #5CF5BA
tetradic
#BA5CF5 #F56D5C #97F55C #5CE3F5
square
#BA5CF5 #F56D5C #97F55C #5CE3F5
split-complementary
#BA5CF5 #E3F55C #5CF56D
monochromatic
#810CCA #A222F1 #BA5CF5 #D296F9 #EBCFFC

Accessibility & contrast

On white

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

On black

5.94
#BA5CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CF5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CF5#FFFFFF#000000##000000
##BA5CF51.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0184FA
Deuteranopia (green-blind)
#488AF1
Tritanopia (blue-blind)
#B27AA0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5cf5;
/* rgb */ color: rgb(186, 92, 245);
/* oklch */ color: oklch(65.4% 0.226 309.9);
Tailwind
colors: {
  custom: {
    50: '#d38ff9',
    500: '#ba5cf5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cf5;
$custom-light: #d38ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cf5",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 245
  },
  "hsl": {
    "h": 276.863,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65448,
    "c": 0.22609,
    "h": 309.9
  },
  "luminance": 0.24686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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