#BA5DEB#BA5DEB

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

Color values

HEX#BA5DEB
RGBrgb(186, 93, 235)
HSLhsl(279, 78%, 64%)
HSVhsv(279, 60%, 92%)
CMYKcmyk(20.9%, 60.4%, 0%, 7.8%)
CIE-LABlab(56.35, 60.17, -56.62)
CIE-LCHlch(56.35, 82.62, 316.74°)
OKLaboklab(64.96% 0.144 -0.1592)
OKLCHoklch(64.96% 0.215 312.1)
XYZxyz(39.1568, 24.2669, 81.2024)
Luminance0.2427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DEB #8EEB5D
analogous
#735DEB #BA5DEB #EB5DD5
triadic
#BA5DEB #EBBA5D #5DEBBA
tetradic
#BA5DEB #EB735D #8EEB5D #5DD5EB
square
#BA5DEB #EB735D #8EEB5D #5DD5EB
split-complementary
#BA5DEB #D5EB5D #5DEB73
monochromatic
#8017B7 #A327E4 #BA5DEB #D193F2 #E8CAF8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA5DEB#FFFFFF#000000##000000
##BA5DEB1.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)
#2682EF
Deuteranopia (green-blind)
#5289E8
Tritanopia (blue-blind)
#B5779C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5deb;
/* rgb */ color: rgb(186, 93, 235);
/* oklch */ color: oklch(65.0% 0.215 312.1);
Tailwind
colors: {
  custom: {
    50: '#d290f2',
    500: '#ba5deb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5deb;
$custom-light: #d290f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5deb",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 279.296,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64959,
    "c": 0.21462,
    "h": 312.1
  },
  "luminance": 0.24266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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