#BA5DF2#BA5DF2

#BA5DF2 is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.4% C 0.222 H 310.4°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#BA5DF2
RGBrgb(186, 93, 242)
HSLhsl(277, 85%, 66%)
HSVhsv(277, 62%, 95%)
CMYKcmyk(23.1%, 61.6%, 0%, 5.1%)
CIE-LABlab(56.76, 61.65, -59.88)
CIE-LCHlch(56.76, 85.94, 315.84°)
OKLaboklab(65.39% 0.1438 -0.1687)
OKLCHoklch(65.39% 0.222 310.4)
XYZxyz(40.1880, 24.6794, 86.6337)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DF2 #95F25D
analogous
#6F5DF2 #BA5DF2 #F25DDF
triadic
#BA5DF2 #F2BA5D #5DF2BA
tetradic
#BA5DF2 #F26F5D #95F25D #5DDFF2
square
#BA5DF2 #F26F5D #95F25D #5DDFF2
split-complementary
#BA5DF2 #DFF25D #5DF26F
monochromatic
#8110C5 #A224ED #BA5DF2 #D296F7 #EACEFB

Accessibility & contrast

On white

3.54
#BA5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#BA5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DF2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DF2#FFFFFF#000000##000000
##BA5DF21.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1684F7
Deuteranopia (green-blind)
#4C8AEF
Tritanopia (blue-blind)
#B37A9F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5df2;
/* rgb */ color: rgb(186, 93, 242);
/* oklch */ color: oklch(65.4% 0.222 310.4);
Tailwind
colors: {
  custom: {
    50: '#d390f7',
    500: '#ba5df2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5df2;
$custom-light: #d390f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5df2",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 277.45,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.65385,
    "c": 0.22171,
    "h": 310.4
  },
  "luminance": 0.24679
}

Semantic roles & 50–950 ramp

primary
#BA5DF2
secondary
#CFEEBD
accent
#E20457
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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