#BA5AEB#BA5AEB

#BA5AEB is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.6% C 0.219 H 312.4°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#BA5AEB
RGBrgb(186, 90, 235)
HSLhsl(280, 78%, 64%)
HSVhsv(280, 62%, 92%)
CMYKcmyk(20.9%, 61.7%, 0%, 7.8%)
CIE-LABlab(55.84, 61.58, -57.45)
CIE-LCHlch(55.84, 84.22, 316.99°)
OKLaboklab(64.58% 0.1475 -0.1616)
OKLCHoklch(64.58% 0.219 312.4)
XYZxyz(38.8986, 23.7506, 81.1164)
Luminance0.2375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AEB #8BEB5A
analogous
#715AEB #BA5AEB #EB5AD3
triadic
#BA5AEB #EBBA5A #5AEBBA
tetradic
#BA5AEB #EB715A #8BEB5A #5AD3EB
square
#BA5AEB #EB715A #8BEB5A #5AD3EB
split-complementary
#BA5AEB #D3EB5A #5AEB71
monochromatic
#7F16B5 #A323E4 #BA5AEB #D191F2 #E8C7F8

Accessibility & contrast

On white

3.65
#BA5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#BA5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AEB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AEB#FFFFFF#000000##000000
##BA5AEB1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D81EF
Deuteranopia (green-blind)
#4F88E8
Tritanopia (blue-blind)
#B5759B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5aeb;
/* rgb */ color: rgb(186, 90, 235);
/* oklch */ color: oklch(64.6% 0.219 312.4);
Tailwind
colors: {
  custom: {
    50: '#d28ef2',
    500: '#ba5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5aeb;
$custom-light: #d28ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5aeb",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 279.724,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64584,
    "c": 0.21878,
    "h": 312.4
  },
  "luminance": 0.2375
}

Semantic roles & 50–950 ramp

primary
#BA5AEB
secondary
#C8EAB7
accent
#DB0B51
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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