#BA5AF5#BA5AF5

#BA5AF5 is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 65.2% C 0.229 H 310.0°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#BA5AF5
RGBrgb(186, 90, 245)
HSLhsl(277, 89%, 66%)
HSVhsv(277, 63%, 96%)
CMYKcmyk(24.1%, 63.3%, 0%, 3.9%)
CIE-LABlab(56.43, 63.69, -62.08)
CIE-LCHlch(56.43, 88.93, 315.73°)
OKLaboklab(65.2% 0.1471 -0.1751)
OKLCHoklch(65.2% 0.229 310)
XYZxyz(40.3841, 24.3448, 88.9401)
Luminance0.2434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AF5 #95F55A
analogous
#6C5AF5 #BA5AF5 #F55AE3
triadic
#BA5AF5 #F5BA5A #5AF5BA
tetradic
#BA5AF5 #F56C5A #95F55A #5AE3F5
square
#BA5AF5 #F56C5A #95F55A #5AE3F5
split-complementary
#BA5AF5 #E3F55A #5AF56C
monochromatic
#810CC8 #A220F2 #BA5AF5 #D294F8 #EACDFC

Accessibility & contrast

On white

3.58
#BA5AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#BA5AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AF5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AF5#FFFFFF#000000##000000
##BA5AF51.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FA
Deuteranopia (green-blind)
#4589F1
Tritanopia (blue-blind)
#B279A0
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba5af5;
/* rgb */ color: rgb(186, 90, 245);
/* oklch */ color: oklch(65.2% 0.229 310.0);
Tailwind
colors: {
  custom: {
    50: '#d38ef9',
    500: '#ba5af5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5af5;
$custom-light: #d38ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5af5",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 245
  },
  "hsl": {
    "h": 277.161,
    "s": 88.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.65204,
    "c": 0.22875,
    "h": 310
  },
  "luminance": 0.24344
}

Semantic roles & 50–950 ramp

primary
#BA5AF5
secondary
#CFEFBC
accent
#E50057
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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