#BA5DEF#BA5DEF

#BA5DEF is a light, highly saturated violet. Relative luminance 0.245; OKLCH L 65.2% C 0.219 H 311.2°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#BA5DEF
RGBrgb(186, 93, 239)
HSLhsl(278, 82%, 65%)
HSVhsv(278, 61%, 94%)
CMYKcmyk(22.2%, 61.1%, 0%, 6.3%)
CIE-LABlab(56.59, 61.02, -58.49)
CIE-LCHlch(56.59, 84.52, 316.21°)
OKLaboklab(65.2% 0.1439 -0.1646)
OKLCHoklch(65.2% 0.219 311.2)
XYZxyz(39.7412, 24.5007, 84.2802)
Luminance0.2450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DEF #92EF5D
analogous
#715DEF #BA5DEF #EF5DDB
triadic
#BA5DEF #EFBA5D #5DEFBA
tetradic
#BA5DEF #EF715D #92EF5D #5DDBEF
square
#BA5DEF #EF715D #92EF5D #5DDBEF
split-complementary
#BA5DEF #DBEF5D #5DEF71
monochromatic
#8013BF #A225E9 #BA5DEF #D295F5 #E9CCFA

Accessibility & contrast

On white

3.56
#BA5DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#BA5DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DEF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DEF#FFFFFF#000000##000000
##BA5DEF1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E83F4
Deuteranopia (green-blind)
#4F89EC
Tritanopia (blue-blind)
#B4799E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5def;
/* rgb */ color: rgb(186, 93, 239);
/* oklch */ color: oklch(65.2% 0.219 311.2);
Tailwind
colors: {
  custom: {
    50: '#d290f5',
    500: '#ba5def',
    950: '#000000',
  },
}
SCSS
$custom: #ba5def;
$custom-light: #d290f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5def",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 278.219,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.65201,
    "c": 0.21866,
    "h": 311.2
  },
  "luminance": 0.245
}

Semantic roles & 50–950 ramp

primary
#BA5DEF
secondary
#CDEDBB
accent
#DE0755
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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