#BA6FE5#BA6FE5

#BA6FE5 is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.1% C 0.181 H 311.8°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#BA6FE5
RGBrgb(186, 111, 229)
HSLhsl(278, 69%, 67%)
HSVhsv(278, 52%, 90%)
CMYKcmyk(18.8%, 51.5%, 0%, 10.2%)
CIE-LABlab(59.40, 49.91, -48.41)
CIE-LCHlch(59.40, 69.54, 315.87°)
OKLaboklab(67.09% 0.121 -0.1353)
OKLCHoklch(67.09% 0.182 311.8)
XYZxyz(40.0745, 27.4660, 77.3039)
Luminance0.2747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6FE5 #9AE56F
analogous
#7F6FE5 #BA6FE5 #E56FD5
triadic
#BA6FE5 #E5BA6F #6FE5BA
tetradic
#BA6FE5 #E57F6F #9AE56F #6FD5E5
square
#BA6FE5 #E57F6F #9AE56F #6FD5E5
split-complementary
#BA6FE5 #D5E56F #6FE57F
monochromatic
#8121B8 #A13BDC #BA6FE5 #D3A3EE #ECD7F8

Accessibility & contrast

On white

3.23
#BA6FE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#BA6FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6FE5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6FE5#FFFFFF#000000##000000
##BA6FE51.003.236.496.49
#FFFFFF3.231.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#518BE9
Deuteranopia (green-blind)
#6891E2
Tritanopia (blue-blind)
#B583A0
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6fe5;
/* rgb */ color: rgb(186, 111, 229);
/* oklch */ color: oklch(67.1% 0.181 311.8);
Tailwind
colors: {
  custom: {
    50: '#d19bee',
    500: '#ba6fe5',
    950: '#000000',
  },
}
SCSS
$custom: #ba6fe5;
$custom-light: #d19bee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6fe5",
  "rgb": {
    "r": 186,
    "g": 111,
    "b": 229
  },
  "hsl": {
    "h": 278.136,
    "s": 69.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.67088,
    "c": 0.1815,
    "h": 311.8
  },
  "luminance": 0.27465
}

Semantic roles & 50–950 ramp

primary
#BA6FE5
secondary
#D3EBC5
accent
#D11459
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA6FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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