#BA59F2#BA59F2

#BA59F2 is a light, highly saturated violet. Relative luminance 0.240; OKLCH L 64.9% C 0.227 H 310.8°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#BA59F2
RGBrgb(186, 89, 242)
HSLhsl(278, 85%, 65%)
HSVhsv(278, 63%, 95%)
CMYKcmyk(23.1%, 63.2%, 0%, 5.1%)
CIE-LABlab(56.08, 63.51, -60.96)
CIE-LCHlch(56.08, 88.03, 316.17°)
OKLaboklab(64.9% 0.1484 -0.1719)
OKLCHoklch(64.9% 0.227 310.8)
XYZxyz(39.8461, 23.9955, 86.5197)
Luminance0.2399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59F2 #91F259
analogous
#6D59F2 #BA59F2 #F259DE
triadic
#BA59F2 #F2BA59 #59F2BA
tetradic
#BA59F2 #F26D59 #91F259 #59DEF2
square
#BA59F2 #F26D59 #91F259 #59DEF2
split-complementary
#BA59F2 #DEF259 #59F26D
monochromatic
#800FC1 #A220EE #BA59F2 #D292F6 #E9CBFB

Accessibility & contrast

On white

3.62
#BA59F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#BA59F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59F2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59F2#FFFFFF#000000##000000
##BA59F21.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#4888EE
Tritanopia (blue-blind)
#B3779E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba59f2;
/* rgb */ color: rgb(186, 89, 242);
/* oklch */ color: oklch(64.9% 0.227 310.8);
Tailwind
colors: {
  custom: {
    50: '#d38df7',
    500: '#ba59f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba59f2;
$custom-light: #d38df7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59f2",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 242
  },
  "hsl": {
    "h": 278.039,
    "s": 85.475,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64895,
    "c": 0.22709,
    "h": 310.8
  },
  "luminance": 0.23995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA59F2

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

Preview Lab → · Contrast checker → · Palette generator →

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