#BA5FF2#BA5FF2

#BA5FF2 is a light, highly saturated violet. Relative luminance 0.250; OKLCH L 65.6% C 0.219 H 310.3°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#BA5FF2
RGBrgb(186, 95, 242)
HSLhsl(277, 85%, 66%)
HSVhsv(277, 61%, 95%)
CMYKcmyk(23.1%, 60.7%, 0%, 5.1%)
CIE-LABlab(57.11, 60.71, -59.32)
CIE-LCHlch(57.11, 84.88, 315.66°)
OKLaboklab(65.64% 0.1415 -0.1671)
OKLCHoklch(65.64% 0.219 310.3)
XYZxyz(40.3659, 25.0351, 86.6930)
Luminance0.2503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FF2 #97F25F
analogous
#705FF2 #BA5FF2 #F25FE0
triadic
#BA5FF2 #F2BA5F #5FF2BA
tetradic
#BA5FF2 #F2705F #97F25F #5FE0F2
square
#BA5FF2 #F2705F #97F25F #5FE0F2
split-complementary
#BA5FF2 #E0F25F #5FF270
monochromatic
#8110C6 #A226ED #BA5FF2 #D298F7 #EBD0FB

Accessibility & contrast

On white

3.50
#BA5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#BA5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FF2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FF2#FFFFFF#000000##000000
##BA5FF21.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E85F7
Deuteranopia (green-blind)
#4E8BEF
Tritanopia (blue-blind)
#B37BA0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5ff2;
/* rgb */ color: rgb(186, 95, 242);
/* oklch */ color: oklch(65.6% 0.219 310.3);
Tailwind
colors: {
  custom: {
    50: '#d291f7',
    500: '#ba5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ff2;
$custom-light: #d291f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ff2",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 277.143,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65638,
    "c": 0.21896,
    "h": 310.3
  },
  "luminance": 0.25034
}

Semantic roles & 50–950 ramp

primary
#BA5FF2
secondary
#D1EFBE
accent
#E10458
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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