#BA70EE#BA70EE

#BA70EE is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.7% C 0.190 H 309.3°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#BA70EE
RGBrgb(186, 112, 238)
HSLhsl(275, 79%, 69%)
HSVhsv(275, 53%, 93%)
CMYKcmyk(21.8%, 52.9%, 0%, 6.7%)
CIE-LABlab(60.07, 51.35, -52.37)
CIE-LCHlch(60.07, 73.35, 314.44°)
OKLaboklab(67.73% 0.1204 -0.1468)
OKLCHoklch(67.73% 0.19 309.3)
XYZxyz(41.4735, 28.2012, 84.1309)
Luminance0.2820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70EE #A4EE70
analogous
#7B70EE #BA70EE #EE70E3
triadic
#BA70EE #EEBA70 #70EEBA
tetradic
#BA70EE #EE7B70 #A4EE70 #70E3EE
square
#BA70EE #EE7B70 #A4EE70 #70E3EE
split-complementary
#BA70EE #E3EE70 #70EE7B
monochromatic
#8118CB #A039E7 #BA70EE #D4A7F5 #EFDDFB

Accessibility & contrast

On white

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

On black

6.64
#BA70EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70EE
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70EE#FFFFFF#000000##000000
##BA70EE1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF2
Deuteranopia (green-blind)
#6392EB
Tritanopia (blue-blind)
#B386A5
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba70ee;
/* rgb */ color: rgb(186, 112, 238);
/* oklch */ color: oklch(67.7% 0.190 309.3);
Tailwind
colors: {
  custom: {
    50: '#d19bf4',
    500: '#ba70ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba70ee;
$custom-light: #d19bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70ee",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 238
  },
  "hsl": {
    "h": 275.238,
    "s": 78.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.67732,
    "c": 0.18987,
    "h": 309.3
  },
  "luminance": 0.282
}

Semantic roles & 50–950 ramp

primary
#BA70EE
secondary
#DAF0CA
accent
#DB0A61
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70EE

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

Preview Lab → · Contrast checker → · Palette generator →

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