#BA5CEC#BA5CEC

#BA5CEC is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 64.9% C 0.217 H 312.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#BA5CEC
RGBrgb(186, 92, 236)
HSLhsl(279, 79%, 64%)
HSVhsv(279, 61%, 93%)
CMYKcmyk(21.2%, 61%, 0%, 7.5%)
CIE-LABlab(56.24, 60.85, -57.37)
CIE-LCHlch(56.24, 83.63, 316.69°)
OKLaboklab(64.89% 0.1451 -0.1614)
OKLCHoklch(64.89% 0.217 312)
XYZxyz(39.2144, 24.1505, 81.9364)
Luminance0.2415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5CEC #8EEC5C
analogous
#725CEC #BA5CEC #EC5CD6
triadic
#BA5CEC #ECBA5C #5CECBA
tetradic
#BA5CEC #EC725C #8EEC5C #5CD6EC
square
#BA5CEC #EC725C #8EEC5C #5CD6EC
split-complementary
#BA5CEC #D6EC5C #5CEC72
monochromatic
#8015B8 #A325E6 #BA5CEC #D193F2 #E8CAF9

Accessibility & contrast

On white

3.60
#BA5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#BA5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5CEC
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5CEC#FFFFFF#000000##000000
##BA5CEC1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2182F0
Deuteranopia (green-blind)
#5189E9
Tritanopia (blue-blind)
#B4779C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5cec;
/* rgb */ color: rgb(186, 92, 236);
/* oklch */ color: oklch(64.9% 0.217 312.0);
Tailwind
colors: {
  custom: {
    50: '#d28ff3',
    500: '#ba5cec',
    950: '#000000',
  },
}
SCSS
$custom: #ba5cec;
$custom-light: #d28ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5cec",
  "rgb": {
    "r": 186,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 279.167,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64893,
    "c": 0.21702,
    "h": 312
  },
  "luminance": 0.2415
}

Semantic roles & 50–950 ramp

primary
#BA5CEC
secondary
#CAEBB9
accent
#DB0A53
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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