#BA5DF5#BA5DF5

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

Color values

HEX#BA5DF5
RGBrgb(186, 93, 245)
HSLhsl(277, 88%, 66%)
HSVhsv(277, 62%, 96%)
CMYKcmyk(24.1%, 62%, 0%, 3.9%)
CIE-LABlab(56.94, 62.29, -61.26)
CIE-LCHlch(56.94, 87.37, 315.48°)
OKLaboklab(65.57% 0.1437 -0.1728)
OKLCHoklch(65.57% 0.225 309.8)
XYZxyz(40.6423, 24.8612, 89.0262)
Luminance0.2486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5DF5 #98F55D
analogous
#6E5DF5 #BA5DF5 #F55DE4
triadic
#BA5DF5 #F5BA5D #5DF5BA
tetradic
#BA5DF5 #F56E5D #98F55D #5DE4F5
square
#BA5DF5 #F56E5D #98F55D #5DE4F5
split-complementary
#BA5DF5 #E4F55D #5DF56E
monochromatic
#810DCB #A123F1 #BA5DF5 #D397F9 #EBD0FC

Accessibility & contrast

On white

3.52
#BA5DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#BA5DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5DF5
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5DF5#FFFFFF#000000##000000
##BA5DF51.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A85FA
Deuteranopia (green-blind)
#498AF1
Tritanopia (blue-blind)
#B27BA1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5df5;
/* rgb */ color: rgb(186, 93, 245);
/* oklch */ color: oklch(65.6% 0.225 309.8);
Tailwind
colors: {
  custom: {
    50: '#d390f9',
    500: '#ba5df5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5df5;
$custom-light: #d390f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5df5",
  "rgb": {
    "r": 186,
    "g": 93,
    "b": 245
  },
  "hsl": {
    "h": 276.711,
    "s": 88.372,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65571,
    "c": 0.22475,
    "h": 309.8
  },
  "luminance": 0.2486
}

Semantic roles & 50–950 ramp

primary
#BA5DF5
secondary
#D1F0BE
accent
#E50159
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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