#BA5DFA#BA5DFA

#BA5DFA is a light, highly saturated violet. Relative luminance 0.252; OKLCH L 65.9% C 0.230 H 308.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#BA5DFA
RGBrgb(186, 93, 250)
HSLhsl(276, 94%, 67%)
HSVhsv(276, 63%, 98%)
CMYKcmyk(25.6%, 62.8%, 0%, 2%)
CIE-LABlab(57.24, 63.37, -63.55)
CIE-LCHlch(57.24, 89.75, 314.92°)
OKLaboklab(65.89% 0.1435 -0.1795)
OKLCHoklch(65.89% 0.23 308.6)
XYZxyz(41.4159, 25.1706, 93.1006)
Luminance0.2517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DFA #9DFA5D
analogous
#6B5DFA #BA5DFA #FA5DEC
triadic
#BA5DFA #FABA5D #5DFABA
tetradic
#BA5DFA #FA6B5D #9DFA5D #5DECFA
square
#BA5DFA #FA6B5D #9DFA5D #5DECFA
split-complementary
#BA5DFA #ECFA5D #5DFA6B
monochromatic
#8107D6 #A122F8 #BA5DFA #D398FC #EDD4FE

Accessibility & contrast

On white

3.48
#BA5DFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#BA5DFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DFA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DFA#FFFFFF#000000##000000
##BA5DFA1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0086FF
Deuteranopia (green-blind)
#438BF6
Tritanopia (blue-blind)
#B17DA3
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5dfa;
/* rgb */ color: rgb(186, 93, 250);
/* oklch */ color: oklch(65.9% 0.230 308.6);
Tailwind
colors: {
  custom: {
    50: '#d390fd',
    500: '#ba5dfa',
    950: '#000000',
  },
}
SCSS
$custom: #ba5dfa;
$custom-light: #d390fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5dfa",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 250
  },
  "hsl": {
    "h": 275.541,
    "s": 94.012,
    "l": 67.255
  },
  "oklch": {
    "l": 0.65886,
    "c": 0.22982,
    "h": 308.6
  },
  "luminance": 0.2517
}

Semantic roles & 50–950 ramp

primary
#BA5DFA
secondary
#D5F2C1
accent
#E6005E
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5DFA

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

Preview Lab → · Contrast checker → · Palette generator →

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