#BA5CEE#BA5CEE

#BA5CEE is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 65.0% C 0.219 H 311.5°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#BA5CEE
RGBrgb(186, 92, 238)
HSLhsl(279, 81%, 65%)
HSVhsv(279, 61%, 93%)
CMYKcmyk(21.8%, 61.3%, 0%, 6.7%)
CIE-LABlab(56.35, 61.27, -58.30)
CIE-LCHlch(56.35, 84.58, 316.43°)
OKLaboklab(65.02% 0.1451 -0.1641)
OKLCHoklch(65.02% 0.219 311.5)
XYZxyz(39.5066, 24.2674, 83.4753)
Luminance0.2427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CEE #90EE5C
analogous
#715CEE #BA5CEE #EE5CD9
triadic
#BA5CEE #EEBA5C #5CEEBA
tetradic
#BA5CEE #EE715C #90EE5C #5CD9EE
square
#BA5CEE #EE715C #90EE5C #5CD9EE
split-complementary
#BA5CEE #D9EE5C #5CEE71
monochromatic
#8014BC #A325E8 #BA5CEE #D193F4 #E9CBFA

Accessibility & contrast

On white

3.59
#BA5CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#BA5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CEE
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CEE#FFFFFF#000000##000000
##BA5CEE1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D83F3
Deuteranopia (green-blind)
#4F89EB
Tritanopia (blue-blind)
#B4789D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5cee;
/* rgb */ color: rgb(186, 92, 238);
/* oklch */ color: oklch(65.0% 0.219 311.5);
Tailwind
colors: {
  custom: {
    50: '#d28ff4',
    500: '#ba5cee',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cee;
$custom-light: #d28ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cee",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 278.63,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.65015,
    "c": 0.21904,
    "h": 311.5
  },
  "luminance": 0.24266
}

Semantic roles & 50–950 ramp

primary
#BA5CEE
secondary
#CCECBA
accent
#DD0854
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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