#BA6AFA#BA6AFA

#BA6AFA is a light, highly saturated violet. Relative luminance 0.276; OKLCH L 67.6% C 0.212 H 307.3°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#BA6AFA
RGBrgb(186, 106, 250)
HSLhsl(273, 94%, 70%)
HSVhsv(273, 58%, 98%)
CMYKcmyk(25.6%, 57.6%, 0%, 2%)
CIE-LABlab(59.57, 57.07, -59.81)
CIE-LCHlch(59.57, 82.67, 313.66°)
OKLaboklab(67.58% 0.1283 -0.1686)
OKLCHoklch(67.58% 0.212 307.3)
XYZxyz(42.6555, 27.6498, 93.5138)
Luminance0.2765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AFA #AAFA6A
analogous
#726AFA #BA6AFA #FA6AF2
triadic
#BA6AFA #FABA6A #6AFABA
tetradic
#BA6AFA #FA726A #AAFA6A #6AF2FA
square
#BA6AFA #FA726A #AAFA6A #6AF2FA
split-complementary
#BA6AFA #F2FA6A #6AFA72
monochromatic
#8108E2 #9F2FF8 #BA6AFA #D5A5FC #F1E0FE

Accessibility & contrast

On white

3.22
#BA6AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#BA6AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AFA
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AFA#FFFFFF#000000##000000
##BA6AFA1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#318DFF
Deuteranopia (green-blind)
#5390F7
Tritanopia (blue-blind)
#B086A8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6afa;
/* rgb */ color: rgb(186, 106, 250);
/* oklch */ color: oklch(67.6% 0.212 307.3);
Tailwind
colors: {
  custom: {
    50: '#d298fd',
    500: '#ba6afa',
    950: '#000000',
  },
}
SCSS
$custom: #ba6afa;
$custom-light: #d298fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6afa",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 250
  },
  "hsl": {
    "h": 273.333,
    "s": 93.506,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67579,
    "c": 0.21188,
    "h": 307.3
  },
  "luminance": 0.27649
}

Semantic roles & 50–950 ramp

primary
#BA6AFA
secondary
#DEF4CC
accent
#E60066
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA6AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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