#BA6BEB#BA6BEB

#BA6BEB is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.8% C 0.194 H 310.7°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#BA6BEB
RGBrgb(186, 107, 235)
HSLhsl(277, 76%, 67%)
HSVhsv(277, 54%, 92%)
CMYKcmyk(20.9%, 54.5%, 0%, 7.8%)
CIE-LABlab(58.93, 53.27, -52.51)
CIE-LCHlch(58.93, 74.80, 315.41°)
OKLaboklab(66.84% 0.1266 -0.1472)
OKLCHoklch(66.84% 0.194 310.7)
XYZxyz(40.5000, 26.9535, 81.6502)
Luminance0.2695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BEB #9CEB6B
analogous
#7A6BEB #BA6BEB #EB6BDC
triadic
#BA6BEB #EBBA6B #6BEBBA
tetradic
#BA6BEB #EB7A6B #9CEB6B #6BDCEB
square
#BA6BEB #EB7A6B #9CEB6B #6BDCEB
split-complementary
#BA6BEB #DCEB6B #6BEB7A
monochromatic
#811AC1 #A135E4 #BA6BEB #D3A1F2 #ECD7FA

Accessibility & contrast

On white

3.29
#BA6BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#BA6BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BEB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BEB#FFFFFF#000000##000000
##BA6BEB1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#458AEF
Deuteranopia (green-blind)
#608FE8
Tritanopia (blue-blind)
#B481A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6beb;
/* rgb */ color: rgb(186, 107, 235);
/* oklch */ color: oklch(66.8% 0.194 310.7);
Tailwind
colors: {
  custom: {
    50: '#d298f2',
    500: '#ba6beb',
    950: '#000000',
  },
}
SCSS
$custom: #ba6beb;
$custom-light: #d298f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6beb",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 235
  },
  "hsl": {
    "h": 277.031,
    "s": 76.19,
    "l": 67.059
  },
  "oklch": {
    "l": 0.66842,
    "c": 0.1942,
    "h": 310.7
  },
  "luminance": 0.26953
}

Semantic roles & 50–950 ramp

primary
#BA6BEB
secondary
#D4EDC5
accent
#D80D5B
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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