#BA70EF#BA70EF

#BA70EF is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.8% C 0.191 H 309.1°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#BA70EF
RGBrgb(186, 112, 239)
HSLhsl(275, 80%, 69%)
HSVhsv(275, 53%, 94%)
CMYKcmyk(22.2%, 53.1%, 0%, 6.3%)
CIE-LABlab(60.12, 51.57, -52.84)
CIE-LCHlch(60.12, 73.84, 314.30°)
OKLaboklab(67.79% 0.1204 -0.1482)
OKLCHoklch(67.79% 0.191 309.1)
XYZxyz(41.6208, 28.2601, 84.9068)
Luminance0.2826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70EF #A5EF70
analogous
#7B70EF #BA70EF #EF70E4
triadic
#BA70EF #EFBA70 #70EFBA
tetradic
#BA70EF #EF7B70 #A5EF70 #70E4EF
square
#BA70EF #EF7B70 #A5EF70 #70E4EF
split-complementary
#BA70EF #E4EF70 #70EF7B
monochromatic
#8117CE #9F39E9 #BA70EF #D5A7F5 #EFDEFB

Accessibility & contrast

On white

3.16
#BA70EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#BA70EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70EF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70EF#FFFFFF#000000##000000
##BA70EF1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8EF3
Deuteranopia (green-blind)
#6292EC
Tritanopia (blue-blind)
#B386A5
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba70ef;
/* rgb */ color: rgb(186, 112, 239);
/* oklch */ color: oklch(67.8% 0.191 309.1);
Tailwind
colors: {
  custom: {
    50: '#d19bf5',
    500: '#ba70ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba70ef;
$custom-light: #d19bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70ef",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 274.961,
    "s": 79.874,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67788,
    "c": 0.19097,
    "h": 309.1
  },
  "luminance": 0.28259
}

Semantic roles & 50–950 ramp

primary
#BA70EF
secondary
#DAF0CB
accent
#DC0961
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70EF

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

Preview Lab → · Contrast checker → · Palette generator →

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