#BA5DEC#BA5DEC

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

Color values

HEX#BA5DEC
RGBrgb(186, 93, 236)
HSLhsl(279, 79%, 65%)
HSVhsv(279, 61%, 93%)
CMYKcmyk(21.2%, 60.6%, 0%, 7.5%)
CIE-LABlab(56.41, 60.38, -57.09)
CIE-LCHlch(56.41, 83.10, 316.61°)
OKLaboklab(65.02% 0.144 -0.1605)
OKLCHoklch(65.02% 0.216 311.9)
XYZxyz(39.3016, 24.3249, 81.9654)
Luminance0.2432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DEC #8FEC5D
analogous
#735DEC #BA5DEC #EC5DD7
triadic
#BA5DEC #ECBA5D #5DECBA
tetradic
#BA5DEC #EC735D #8FEC5D #5DD7EC
square
#BA5DEC #EC735D #8FEC5D #5DD7EC
split-complementary
#BA5DEC #D7EC5D #5DEC73
monochromatic
#8016B9 #A326E6 #BA5DEC #D194F2 #E9CBF9

Accessibility & contrast

On white

3.58
#BA5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#BA5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DEC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DEC#FFFFFF#000000##000000
##BA5DEC1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2583F0
Deuteranopia (green-blind)
#5289E9
Tritanopia (blue-blind)
#B4789C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5dec;
/* rgb */ color: rgb(186, 93, 236);
/* oklch */ color: oklch(65.0% 0.216 311.9);
Tailwind
colors: {
  custom: {
    50: '#d290f3',
    500: '#ba5dec',
    950: '#000000',
  },
}
SCSS
$custom: #ba5dec;
$custom-light: #d290f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5dec",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 279.021,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.65019,
    "c": 0.21563,
    "h": 311.9
  },
  "luminance": 0.24324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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