#BA5CEA#BA5CEA

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

Color values

HEX#BA5CEA
RGBrgb(186, 92, 234)
HSLhsl(280, 77%, 64%)
HSVhsv(280, 61%, 92%)
CMYKcmyk(20.5%, 60.7%, 0%, 8.2%)
CIE-LABlab(56.12, 60.44, -56.43)
CIE-LCHlch(56.12, 82.69, 316.96°)
OKLaboklab(64.77% 0.1452 -0.1586)
OKLCHoklch(64.77% 0.215 312.5)
XYZxyz(38.9255, 24.0349, 80.4146)
Luminance0.2403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CEA #8CEA5C
analogous
#735CEA #BA5CEA #EA5CD3
triadic
#BA5CEA #EABA5C #5CEABA
tetradic
#BA5CEA #EA735C #8CEA5C #5CD3EA
square
#BA5CEA #EA735C #8CEA5C #5CD3EA
split-complementary
#BA5CEA #D3EA5C #5CEA73
monochromatic
#7F17B4 #A326E3 #BA5CEA #D192F1 #E8C8F8

Accessibility & contrast

On white

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

On black

5.81
#BA5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CEA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CEA#FFFFFF#000000##000000
##BA5CEA1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2582EE
Deuteranopia (green-blind)
#5289E7
Tritanopia (blue-blind)
#B5769B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5cea;
/* rgb */ color: rgb(186, 92, 234);
/* oklch */ color: oklch(64.8% 0.215 312.5);
Tailwind
colors: {
  custom: {
    50: '#d28ff1',
    500: '#ba5cea',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cea;
$custom-light: #d28ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cea",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 279.718,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64772,
    "c": 0.21501,
    "h": 312.5
  },
  "luminance": 0.24034
}

Semantic roles & 50–950 ramp

primary
#BA5CEA
secondary
#C9EAB8
accent
#D90C51
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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