#BA70EB#BA70EB

#BA70EB is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.6% C 0.187 H 310.1°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#BA70EB
RGBrgb(186, 112, 235)
HSLhsl(276, 75%, 68%)
HSVhsv(276, 52%, 92%)
CMYKcmyk(20.9%, 52.3%, 0%, 7.8%)
CIE-LABlab(59.91, 50.69, -50.95)
CIE-LCHlch(59.91, 71.88, 314.85°)
OKLaboklab(67.57% 0.1202 -0.1427)
OKLCHoklch(67.57% 0.187 310.1)
XYZxyz(41.0365, 28.0263, 81.8290)
Luminance0.2803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70EB #A1EB70
analogous
#7D70EB #BA70EB #EB70DE
triadic
#BA70EB #EBBA70 #70EBBA
tetradic
#BA70EB #EB7D70 #A1EB70 #70DEEB
square
#BA70EB #EB7D70 #A1EB70 #70DEEB
split-complementary
#BA70EB #DEEB70 #70EB7D
monochromatic
#821CC5 #A03AE3 #BA70EB #D4A6F3 #EEDBFA

Accessibility & contrast

On white

3.18
#BA70EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#BA70EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70EB
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70EB#FFFFFF#000000##000000
##BA70EB1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DEF
Deuteranopia (green-blind)
#6592E8
Tritanopia (blue-blind)
#B485A3
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba70eb;
/* rgb */ color: rgb(186, 112, 235);
/* oklch */ color: oklch(67.6% 0.187 310.1);
Tailwind
colors: {
  custom: {
    50: '#d19bf2',
    500: '#ba70eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba70eb;
$custom-light: #d19bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70eb",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 276.098,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.67565,
    "c": 0.18655,
    "h": 310.1
  },
  "luminance": 0.28026
}

Semantic roles & 50–950 ramp

primary
#BA70EB
secondary
#D8EEC9
accent
#D80E5E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70EB

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

Preview Lab → · Contrast checker → · Palette generator →

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