#BA5AF7#BA5AF7

#BA5AF7 is a light, highly saturated violet. Relative luminance 0.245; OKLCH L 65.3% C 0.231 H 309.6°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#BA5AF7
RGBrgb(186, 90, 247)
HSLhsl(277, 91%, 66%)
HSVhsv(277, 64%, 97%)
CMYKcmyk(24.7%, 63.6%, 0%, 3.1%)
CIE-LABlab(56.55, 64.11, -62.99)
CIE-LCHlch(56.55, 89.88, 315.50°)
OKLaboklab(65.33% 0.147 -0.1778)
OKLCHoklch(65.33% 0.231 309.6)
XYZxyz(40.6911, 24.4676, 90.5568)
Luminance0.2447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AF7 #97F75A
analogous
#6B5AF7 #BA5AF7 #F75AE5
triadic
#BA5AF7 #F7BA5A #5AF7BA
tetradic
#BA5AF7 #F76B5A #97F75A #5AE5F7
square
#BA5AF7 #F76B5A #97F75A #5AE5F7
split-complementary
#BA5AF7 #E5F75A #5AF76B
monochromatic
#810ACD #A220F4 #BA5AF7 #D294FA #EBCFFD

Accessibility & contrast

On white

3.56
#BA5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#BA5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AF7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AF7#FFFFFF#000000##000000
##BA5AF71.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FC
Deuteranopia (green-blind)
#4389F3
Tritanopia (blue-blind)
#B17AA1
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5af7;
/* rgb */ color: rgb(186, 90, 247);
/* oklch */ color: oklch(65.3% 0.231 309.6);
Tailwind
colors: {
  custom: {
    50: '#d38efb',
    500: '#ba5af7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5af7;
$custom-light: #d38efb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5af7",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 276.688,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6533,
    "c": 0.23075,
    "h": 309.6
  },
  "luminance": 0.24467
}

Semantic roles & 50–950 ramp

primary
#BA5AF7
secondary
#D1F0BD
accent
#E60059
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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