#BA6AED#BA6AED

#BA6AED is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.8% C 0.198 H 310.3°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#BA6AED
RGBrgb(186, 106, 237)
HSLhsl(277, 78%, 67%)
HSVhsv(277, 55%, 93%)
CMYKcmyk(21.5%, 55.3%, 0%, 7.1%)
CIE-LABlab(58.85, 54.21, -53.76)
CIE-LCHlch(58.85, 76.35, 315.24°)
OKLaboklab(66.82% 0.128 -0.1509)
OKLCHoklch(66.82% 0.198 310.3)
XYZxyz(40.6869, 26.8624, 83.1459)
Luminance0.2686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AED #9DED6A
analogous
#786AED #BA6AED #ED6ADF
triadic
#BA6AED #EDBA6A #6AEDBA
tetradic
#BA6AED #ED786A #9DED6A #6ADFED
square
#BA6AED #ED786A #9DED6A #6ADFED
split-complementary
#BA6AED #DFED6A #6AED78
monochromatic
#8118C5 #A133E6 #BA6AED #D3A1F4 #EDD7FA

Accessibility & contrast

On white

3.30
#BA6AED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#BA6AED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AED
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AED#FFFFFF#000000##000000
##BA6AED1.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#418AF1
Deuteranopia (green-blind)
#5E8FEA
Tritanopia (blue-blind)
#B481A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6aed;
/* rgb */ color: rgb(186, 106, 237);
/* oklch */ color: oklch(66.8% 0.198 310.3);
Tailwind
colors: {
  custom: {
    50: '#d298f3',
    500: '#ba6aed',
    950: '#000000',
  },
}
SCSS
$custom: #ba6aed;
$custom-light: #d298f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6aed",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 237
  },
  "hsl": {
    "h": 276.641,
    "s": 78.443,
    "l": 67.255
  },
  "oklch": {
    "l": 0.66815,
    "c": 0.19785,
    "h": 310.3
  },
  "luminance": 0.26862
}

Semantic roles & 50–950 ramp

primary
#BA6AED
secondary
#D5EEC5
accent
#DB0B5C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AED

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

Preview Lab → · Contrast checker → · Palette generator →

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