#BA5EEC#BA5EEC

#BA5EEC is a light, highly saturated violet. Relative luminance 0.245; OKLCH L 65.1% C 0.214 H 311.8°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#BA5EEC
RGBrgb(186, 94, 236)
HSLhsl(279, 79%, 65%)
HSVhsv(279, 60%, 93%)
CMYKcmyk(21.2%, 60.2%, 0%, 7.5%)
CIE-LABlab(56.59, 59.91, -56.81)
CIE-LCHlch(56.59, 82.56, 316.52°)
OKLaboklab(65.15% 0.1428 -0.1597)
OKLCHoklch(65.15% 0.214 311.8)
XYZxyz(39.3900, 24.5016, 81.9949)
Luminance0.2450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EEC #90EC5E
analogous
#735EEC #BA5EEC #EC5ED7
triadic
#BA5EEC #ECBA5E #5EECBA
tetradic
#BA5EEC #EC735E #90EC5E #5ED7EC
square
#BA5EEC #EC735E #90EC5E #5ED7EC
split-complementary
#BA5EEC #D7EC5E #5EEC73
monochromatic
#8016BA #A327E6 #BA5EEC #D195F2 #E9CBF9

Accessibility & contrast

On white

3.56
#BA5EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#BA5EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EEC
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EEC#FFFFFF#000000##000000
##BA5EEC1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2783F0
Deuteranopia (green-blind)
#538AE9
Tritanopia (blue-blind)
#B4789C
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5eec;
/* rgb */ color: rgb(186, 94, 236);
/* oklch */ color: oklch(65.1% 0.214 311.8);
Tailwind
colors: {
  custom: {
    50: '#d290f3',
    500: '#ba5eec',
    950: '#000000',
  },
}
SCSS
$custom: #ba5eec;
$custom-light: #d290f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5eec",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 236
  },
  "hsl": {
    "h": 278.873,
    "s": 78.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.65146,
    "c": 0.21424,
    "h": 311.8
  },
  "luminance": 0.24501
}

Semantic roles & 50–950 ramp

primary
#BA5EEC
secondary
#CCEBBB
accent
#DB0A54
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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