#BA5CF2#BA5CF2

#BA5CF2 is a light, highly saturated violet. Relative luminance 0.245; OKLCH L 65.3% C 0.223 H 310.5°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#BA5CF2
RGBrgb(186, 92, 242)
HSLhsl(278, 85%, 65%)
HSVhsv(278, 62%, 95%)
CMYKcmyk(23.1%, 62%, 0%, 5.1%)
CIE-LABlab(56.59, 62.12, -60.15)
CIE-LCHlch(56.59, 86.47, 315.92°)
OKLaboklab(65.26% 0.145 -0.1695)
OKLCHoklch(65.26% 0.223 310.5)
XYZxyz(40.1008, 24.5050, 86.6047)
Luminance0.2450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CF2 #94F25C
analogous
#6F5CF2 #BA5CF2 #F25CDF
triadic
#BA5CF2 #F2BA5C #5CF2BA
tetradic
#BA5CF2 #F26F5C #94F25C #5CDFF2
square
#BA5CF2 #F26F5C #94F25C #5CDFF2
split-complementary
#BA5CF2 #DFF25C #5CF26F
monochromatic
#8110C4 #A223ED #BA5CF2 #D295F7 #EACDFB

Accessibility & contrast

On white

3.56
#BA5CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#BA5CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CF2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CF2#FFFFFF#000000##000000
##BA5CF21.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1183F7
Deuteranopia (green-blind)
#4B89EF
Tritanopia (blue-blind)
#B3799F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5cf2;
/* rgb */ color: rgb(186, 92, 242);
/* oklch */ color: oklch(65.3% 0.223 310.5);
Tailwind
colors: {
  custom: {
    50: '#d38ff7',
    500: '#ba5cf2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cf2;
$custom-light: #d38ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cf2",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 242
  },
  "hsl": {
    "h": 277.6,
    "s": 85.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65261,
    "c": 0.22307,
    "h": 310.5
  },
  "luminance": 0.24504
}

Semantic roles & 50–950 ramp

primary
#BA5CF2
secondary
#CFEEBC
accent
#E20457
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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