#BA5DF6#BA5DF6

#BA5DF6 is a light, highly saturated violet. Relative luminance 0.249; OKLCH L 65.6% C 0.226 H 309.5°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#BA5DF6
RGBrgb(186, 93, 246)
HSLhsl(276, 89%, 66%)
HSVhsv(276, 62%, 96%)
CMYKcmyk(24.4%, 62.2%, 0%, 3.5%)
CIE-LABlab(57.00, 62.51, -61.72)
CIE-LCHlch(57.00, 87.84, 315.36°)
OKLaboklab(65.63% 0.1437 -0.1741)
OKLCHoklch(65.63% 0.226 309.5)
XYZxyz(40.7954, 24.9224, 89.8323)
Luminance0.2492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DF6 #99F65D
analogous
#6E5DF6 #BA5DF6 #F65DE5
triadic
#BA5DF6 #F6BA5D #5DF6BA
tetradic
#BA5DF6 #F66E5D #99F65D #5DE5F6
square
#BA5DF6 #F66E5D #99F65D #5DE5F6
split-complementary
#BA5DF6 #E5F65D #5DF66E
monochromatic
#810BCD #A123F3 #BA5DF6 #D397F9 #EBD1FC

Accessibility & contrast

On white

3.51
#BA5DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#BA5DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DF6
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DF6#FFFFFF#000000##000000
##BA5DF61.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0485FB
Deuteranopia (green-blind)
#488AF2
Tritanopia (blue-blind)
#B27BA1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5df6;
/* rgb */ color: rgb(186, 93, 246);
/* oklch */ color: oklch(65.6% 0.226 309.5);
Tailwind
colors: {
  custom: {
    50: '#d390fa',
    500: '#ba5df6',
    950: '#000000',
  },
}
SCSS
$custom: #ba5df6;
$custom-light: #d390fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5df6",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 246
  },
  "hsl": {
    "h": 276.471,
    "s": 89.474,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65634,
    "c": 0.22576,
    "h": 309.5
  },
  "luminance": 0.24922
}

Semantic roles & 50–950 ramp

primary
#BA5DF6
secondary
#D2F0BF
accent
#E6005A
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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