#BA70F4#BA70F4

#BA70F4 is a light, vivid violet. Relative luminance 0.286; OKLCH L 68.1% C 0.197 H 307.9°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#BA70F4
RGBrgb(186, 112, 244)
HSLhsl(274, 86%, 70%)
HSVhsv(274, 54%, 96%)
CMYKcmyk(23.8%, 54.1%, 0%, 4.3%)
CIE-LABlab(60.39, 52.68, -55.19)
CIE-LCHlch(60.39, 76.29, 313.67°)
OKLaboklab(68.07% 0.1207 -0.1551)
OKLCHoklch(68.07% 0.197 307.9)
XYZxyz(42.3697, 28.5596, 88.8509)
Luminance0.2856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70F4 #AAF470
analogous
#7870F4 #BA70F4 #F470EC
triadic
#BA70F4 #F4BA70 #70F4BA
tetradic
#BA70F4 #F47870 #AAF470 #70ECF4
square
#BA70F4 #F47870 #AAF470 #70ECF4
split-complementary
#BA70F4 #ECF470 #70F478
monochromatic
#8111D9 #9F37F0 #BA70F4 #D5A9F8 #F1E2FD

Accessibility & contrast

On white

3.13
#BA70F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#BA70F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70F4
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70F4#FFFFFF#000000##000000
##BA70F41.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#458FF8
Deuteranopia (green-blind)
#5F92F1
Tritanopia (blue-blind)
#B188A8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba70f4;
/* rgb */ color: rgb(186, 112, 244);
/* oklch */ color: oklch(68.1% 0.197 307.9);
Tailwind
colors: {
  custom: {
    50: '#d29cf8',
    500: '#ba70f4',
    950: '#000000',
  },
}
SCSS
$custom: #ba70f4;
$custom-light: #d29cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70f4",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 244
  },
  "hsl": {
    "h": 273.636,
    "s": 85.714,
    "l": 69.804
  },
  "oklch": {
    "l": 0.68072,
    "c": 0.19652,
    "h": 307.9
  },
  "luminance": 0.28559
}

Semantic roles & 50–950 ramp

primary
#BA70F4
secondary
#DEF3CD
accent
#E20365
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70F4

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

Preview Lab → · Contrast checker → · Palette generator →

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