#BA59EF#BA59EF

#BA59EF is a light, highly saturated violet. Relative luminance 0.238; OKLCH L 64.7% C 0.224 H 311.5°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#BA59EF
RGBrgb(186, 89, 239)
HSLhsl(279, 82%, 64%)
HSVhsv(279, 63%, 94%)
CMYKcmyk(22.2%, 62.8%, 0%, 6.3%)
CIE-LABlab(55.90, 62.88, -59.58)
CIE-LCHlch(55.90, 86.62, 316.54°)
OKLaboklab(64.71% 0.1485 -0.1678)
OKLCHoklch(64.71% 0.224 311.5)
XYZxyz(39.3992, 23.8168, 84.1662)
Luminance0.2382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA59EF #8EEF59
analogous
#6F59EF #BA59EF #EF59D9
triadic
#BA59EF #EFBA59 #59EFBA
tetradic
#BA59EF #EF6F59 #8EEF59 #59D9EF
square
#BA59EF #EF6F59 #8EEF59 #59D9EF
split-complementary
#BA59EF #D9EF59 #59EF6F
monochromatic
#8012BC #A321EA #BA59EF #D191F4 #E8C9FA

Accessibility & contrast

On white

3.64
#BA59EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#BA59EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA59EF
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA59EF#FFFFFF#000000##000000
##BA59EF1.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A81F4
Deuteranopia (green-blind)
#4B88EC
Tritanopia (blue-blind)
#B4769C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba59ef;
/* rgb */ color: rgb(186, 89, 239);
/* oklch */ color: oklch(64.7% 0.224 311.5);
Tailwind
colors: {
  custom: {
    50: '#d38df5',
    500: '#ba59ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba59ef;
$custom-light: #d38df5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba59ef",
  "rgb": {
    "r": 186,
    "g": 89,
    "b": 239
  },
  "hsl": {
    "h": 278.8,
    "s": 82.418,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64708,
    "c": 0.22411,
    "h": 311.5
  },
  "luminance": 0.23816
}

Semantic roles & 50–950 ramp

primary
#BA59EF
secondary
#CAECB8
accent
#DF0753
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA59EF

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

Preview Lab → · Contrast checker → · Palette generator →

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