#BA5EEF#BA5EEF

#BA5EEF is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.3% C 0.217 H 311.1°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#BA5EEF
RGBrgb(186, 94, 239)
HSLhsl(278, 82%, 65%)
HSVhsv(278, 61%, 94%)
CMYKcmyk(22.2%, 60.7%, 0%, 6.3%)
CIE-LABlab(56.76, 60.54, -58.21)
CIE-LCHlch(56.76, 83.98, 316.13°)
OKLaboklab(65.33% 0.1427 -0.1638)
OKLCHoklch(65.33% 0.217 311.1)
XYZxyz(39.8295, 24.6774, 84.3097)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EEF #93EF5E
analogous
#715EEF #BA5EEF #EF5EDB
triadic
#BA5EEF #EFBA5E #5EEFBA
tetradic
#BA5EEF #EF715E #93EF5E #5EDBEF
square
#BA5EEF #EF715E #93EF5E #5EDBEF
split-complementary
#BA5EEF #DBEF5E #5EEF71
monochromatic
#8113C0 #A226E9 #BA5EEF #D296F5 #EACDFA

Accessibility & contrast

On white

3.54
#BA5EEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#BA5EEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EEF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EEF#FFFFFF#000000##000000
##BA5EEF1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2284F4
Deuteranopia (green-blind)
#508AEC
Tritanopia (blue-blind)
#B37A9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5eef;
/* rgb */ color: rgb(186, 94, 239);
/* oklch */ color: oklch(65.3% 0.217 311.1);
Tailwind
colors: {
  custom: {
    50: '#d290f5',
    500: '#ba5eef',
    950: '#000000',
  },
}
SCSS
$custom: #ba5eef;
$custom-light: #d290f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5eef",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 239
  },
  "hsl": {
    "h": 278.069,
    "s": 81.921,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65327,
    "c": 0.21728,
    "h": 311.1
  },
  "luminance": 0.24677
}

Semantic roles & 50–950 ramp

primary
#BA5EEF
secondary
#CEEDBC
accent
#DE0756
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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