#BA5AEF#BA5AEF

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

Color values

HEX#BA5AEF
RGBrgb(186, 90, 239)
HSLhsl(279, 82%, 65%)
HSVhsv(279, 62%, 94%)
CMYKcmyk(22.2%, 62.3%, 0%, 6.3%)
CIE-LABlab(56.07, 62.42, -59.31)
CIE-LCHlch(56.07, 86.10, 316.46°)
OKLaboklab(64.83% 0.1474 -0.167)
OKLCHoklch(64.83% 0.223 311.4)
XYZxyz(39.4830, 23.9844, 84.1942)
Luminance0.2398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AEF #8FEF5A
analogous
#705AEF #BA5AEF #EF5AD9
triadic
#BA5AEF #EFBA5A #5AEFBA
tetradic
#BA5AEF #EF705A #8FEF5A #5AD9EF
square
#BA5AEF #EF705A #8FEF5A #5AD9EF
split-complementary
#BA5AEF #D9EF5A #5AEF70
monochromatic
#8012BC #A322EA #BA5AEF #D192F4 #E9CAFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA5AEF#FFFFFF#000000##000000
##BA5AEF1.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)
#1182F4
Deuteranopia (green-blind)
#4C88EC
Tritanopia (blue-blind)
#B4779D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5aef;
/* rgb */ color: rgb(186, 90, 239);
/* oklch */ color: oklch(64.8% 0.223 311.4);
Tailwind
colors: {
  custom: {
    50: '#d28ef5',
    500: '#ba5aef',
    950: '#000000',
  },
}
SCSS
$custom: #ba5aef;
$custom-light: #d28ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5aef",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 278.658,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64829,
    "c": 0.22276,
    "h": 311.4
  },
  "luminance": 0.23983
}

Semantic roles & 50–950 ramp

primary
#BA5AEF
secondary
#CBECB9
accent
#DF0754
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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