#BA6EE2#BA6EE2

#BA6EE2 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.8% C 0.180 H 312.7°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#BA6EE2
RGBrgb(186, 110, 226)
HSLhsl(279, 67%, 66%)
HSVhsv(279, 51%, 89%)
CMYKcmyk(17.7%, 51.3%, 0%, 11.4%)
CIE-LABlab(59.05, 49.79, -47.29)
CIE-LCHlch(59.05, 68.67, 316.47°)
OKLaboklab(66.78% 0.122 -0.132)
OKLCHoklch(66.78% 0.18 312.7)
XYZxyz(39.5507, 27.0829, 75.0808)
Luminance0.2708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6EE2 #96E26E
analogous
#806EE2 #BA6EE2 #E26ED0
triadic
#BA6EE2 #E2BA6E #6EE2BA
tetradic
#BA6EE2 #E2806E #96E26E #6ED0E2
square
#BA6EE2 #E2806E #96E26E #6ED0E2
split-complementary
#BA6EE2 #D0E26E #6EE280
monochromatic
#8124B2 #A23BD8 #BA6EE2 #D2A1EC #EBD4F6

Accessibility & contrast

On white

3.27
#BA6EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#BA6EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6EE2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6EE2#FFFFFF#000000##000000
##BA6EE21.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#6990DF
Tritanopia (blue-blind)
#B6819E
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6ee2;
/* rgb */ color: rgb(186, 110, 226);
/* oklch */ color: oklch(66.8% 0.180 312.7);
Tailwind
colors: {
  custom: {
    50: '#d19aeb',
    500: '#ba6ee2',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ee2;
$custom-light: #d19aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ee2",
  "rgb": {
    "r": 186,
    "g": 110,
    "b": 226
  },
  "hsl": {
    "h": 279.31,
    "s": 66.667,
    "l": 65.882
  },
  "oklch": {
    "l": 0.66778,
    "c": 0.17979,
    "h": 312.7
  },
  "luminance": 0.27082
}

Semantic roles & 50–950 ramp

primary
#BA6EE2
secondary
#D0E9C3
accent
#CF1756
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA6EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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