#BA5EF2#BA5EF2

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

Color values

HEX#BA5EF2
RGBrgb(186, 94, 242)
HSLhsl(277, 85%, 66%)
HSVhsv(277, 61%, 95%)
CMYKcmyk(23.1%, 61.2%, 0%, 5.1%)
CIE-LABlab(56.93, 61.18, -59.60)
CIE-LCHlch(56.93, 85.41, 315.75°)
OKLaboklab(65.51% 0.1427 -0.1679)
OKLCHoklch(65.51% 0.22 310.4)
XYZxyz(40.2764, 24.8561, 86.6632)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EF2 #96F25E
analogous
#705EF2 #BA5EF2 #F25EE0
triadic
#BA5EF2 #F2BA5E #5EF2BA
tetradic
#BA5EF2 #F2705E #96F25E #5EE0F2
square
#BA5EF2 #F2705E #96F25E #5EE0F2
split-complementary
#BA5EF2 #E0F25E #5EF270
monochromatic
#8110C6 #A225ED #BA5EF2 #D297F7 #EBCFFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA5EF2#FFFFFF#000000##000000
##BA5EF21.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)
#1B84F7
Deuteranopia (green-blind)
#4D8AEF
Tritanopia (blue-blind)
#B37BA0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5ef2;
/* rgb */ color: rgb(186, 94, 242);
/* oklch */ color: oklch(65.5% 0.220 310.4);
Tailwind
colors: {
  custom: {
    50: '#d290f7',
    500: '#ba5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ef2;
$custom-light: #d290f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ef2",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 277.297,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.65511,
    "c": 0.22034,
    "h": 310.4
  },
  "luminance": 0.24855
}

Semantic roles & 50–950 ramp

primary
#BA5EF2
secondary
#D0EEBD
accent
#E20458
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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