#BA70EC#BA70EC

#BA70EC is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.6% C 0.188 H 309.8°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#BA70EC
RGBrgb(186, 112, 236)
HSLhsl(276, 77%, 68%)
HSVhsv(276, 53%, 93%)
CMYKcmyk(21.2%, 52.5%, 0%, 7.5%)
CIE-LABlab(59.96, 50.91, -51.43)
CIE-LCHlch(59.96, 72.36, 314.71°)
OKLaboklab(67.62% 0.1202 -0.1441)
OKLCHoklch(67.62% 0.188 309.8)
XYZxyz(41.1813, 28.0843, 82.5920)
Luminance0.2808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70EC #A2EC70
analogous
#7C70EC #BA70EC #EC70E0
triadic
#BA70EC #ECBA70 #70ECBA
tetradic
#BA70EC #EC7C70 #A2EC70 #70E0EC
square
#BA70EC #EC7C70 #A2EC70 #70E0EC
split-complementary
#BA70EC #E0EC70 #70EC7C
monochromatic
#821AC7 #A03AE5 #BA70EC #D4A6F3 #EEDCFA

Accessibility & contrast

On white

3.17
#BA70EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#BA70EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70EC
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70EC#FFFFFF#000000##000000
##BA70EC1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DF0
Deuteranopia (green-blind)
#6492E9
Tritanopia (blue-blind)
#B485A4
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba70ec;
/* rgb */ color: rgb(186, 112, 236);
/* oklch */ color: oklch(67.6% 0.188 309.8);
Tailwind
colors: {
  custom: {
    50: '#d19bf3',
    500: '#ba70ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba70ec;
$custom-light: #d19bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70ec",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 275.806,
    "s": 76.543,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6762,
    "c": 0.18765,
    "h": 309.8
  },
  "luminance": 0.28084
}

Semantic roles & 50–950 ramp

primary
#BA70EC
secondary
#D8EFC9
accent
#D90D5F
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70EC

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

Preview Lab → · Contrast checker → · Palette generator →

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