#BA59F1#BA59F1

#BA59F1 is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.8% C 0.226 H 311.0°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#BA59F1
RGBrgb(186, 89, 241)
HSLhsl(278, 84%, 65%)
HSVhsv(278, 63%, 95%)
CMYKcmyk(22.8%, 63.1%, 0%, 5.5%)
CIE-LABlab(56.02, 63.30, -60.50)
CIE-LCHlch(56.02, 87.56, 316.29°)
OKLaboklab(64.83% 0.1485 -0.1705)
OKLCHoklch(64.83% 0.226 311)
XYZxyz(39.6963, 23.9356, 85.7309)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59F1 #90F159
analogous
#6E59F1 #BA59F1 #F159DC
triadic
#BA59F1 #F1BA59 #59F1BA
tetradic
#BA59F1 #F16E59 #90F159 #59DCF1
square
#BA59F1 #F16E59 #90F159 #59DCF1
split-complementary
#BA59F1 #DCF159 #59F16E
monochromatic
#8010BF #A321EC #BA59F1 #D191F6 #E9CAFB

Accessibility & contrast

On white

3.63
#BA59F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#BA59F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59F1
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59F1#FFFFFF#000000##000000
##BA59F11.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F6
Deuteranopia (green-blind)
#4988ED
Tritanopia (blue-blind)
#B3779D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba59f1;
/* rgb */ color: rgb(186, 89, 241);
/* oklch */ color: oklch(64.8% 0.226 311.0);
Tailwind
colors: {
  custom: {
    50: '#d38df6',
    500: '#ba59f1',
    950: '#000000',
  },
}
SCSS
$custom: #ba59f1;
$custom-light: #d38df6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59f1",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 241
  },
  "hsl": {
    "h": 278.289,
    "s": 84.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.64832,
    "c": 0.2261,
    "h": 311
  },
  "luminance": 0.23935
}

Semantic roles & 50–950 ramp

primary
#BA59F1
secondary
#CCEDB9
accent
#E10554
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA59F1

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

Preview Lab → · Contrast checker → · Palette generator →

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