#BA5AF4#BA5AF4

#BA5AF4 is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 65.1% C 0.228 H 310.3°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#BA5AF4
RGBrgb(186, 90, 244)
HSLhsl(277, 88%, 65%)
HSVhsv(277, 63%, 96%)
CMYKcmyk(23.8%, 63.1%, 0%, 4.3%)
CIE-LABlab(56.37, 63.47, -61.62)
CIE-LCHlch(56.37, 88.46, 315.85°)
OKLaboklab(65.14% 0.1472 -0.1738)
OKLCHoklch(65.14% 0.228 310.3)
XYZxyz(40.2319, 24.2839, 88.1383)
Luminance0.2428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AF4 #94F45A
analogous
#6D5AF4 #BA5AF4 #F45AE1
triadic
#BA5AF4 #F4BA5A #5AF4BA
tetradic
#BA5AF4 #F46D5A #94F45A #5AE1F4
square
#BA5AF4 #F46D5A #94F45A #5AE1F4
split-complementary
#BA5AF4 #E1F45A #5AF46D
monochromatic
#810DC6 #A221F0 #BA5AF4 #D293F8 #EACDFC

Accessibility & contrast

On white

3.59
#BA5AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#BA5AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AF4
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AF4#FFFFFF#000000##000000
##BA5AF41.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083F9
Deuteranopia (green-blind)
#4689F0
Tritanopia (blue-blind)
#B2799F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5af4;
/* rgb */ color: rgb(186, 90, 244);
/* oklch */ color: oklch(65.1% 0.228 310.3);
Tailwind
colors: {
  custom: {
    50: '#d38ef8',
    500: '#ba5af4',
    950: '#000000',
  },
}
SCSS
$custom: #ba5af4;
$custom-light: #d38ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5af4",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 244
  },
  "hsl": {
    "h": 277.403,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65141,
    "c": 0.22776,
    "h": 310.3
  },
  "luminance": 0.24283
}

Semantic roles & 50–950 ramp

primary
#BA5AF4
secondary
#CFEFBB
accent
#E40157
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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