#BA70FB#BA70FB

#BA70FB is a light, highly saturated violet. Relative luminance 0.290; OKLCH L 68.5% C 0.204 H 306.3°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#BA70FB
RGBrgb(186, 112, 251)
HSLhsl(272, 95%, 71%)
HSVhsv(272, 55%, 98%)
CMYKcmyk(25.9%, 55.4%, 0%, 1.6%)
CIE-LABlab(60.78, 54.25, -58.44)
CIE-LCHlch(60.78, 79.74, 312.87°)
OKLaboklab(68.48% 0.121 -0.1646)
OKLCHoklch(68.48% 0.204 306.3)
XYZxyz(43.4528, 28.9929, 94.5551)
Luminance0.2899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70FB #B1FB70
analogous
#7470FB #BA70FB #FB70F7
triadic
#BA70FB #FBBA70 #70FBBA
tetradic
#BA70FB #FB7470 #B1FB70 #70F7FB
square
#BA70FB #FB7470 #B1FB70 #70F7FB
split-complementary
#BA70FB #F7FB70 #70FB74
monochromatic
#8007EA #9D34F9 #BA70FB #D7ACFD #F1E1FE

Accessibility & contrast

On white

3.09
#BA70FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#BA70FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70FB
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70FB#FFFFFF#000000##000000
##BA70FB1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E90FF
Deuteranopia (green-blind)
#5993F8
Tritanopia (blue-blind)
#B08AAB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba70fb;
/* rgb */ color: rgb(186, 112, 251);
/* oklch */ color: oklch(68.5% 0.204 306.3);
Tailwind
colors: {
  custom: {
    50: '#d29cfd',
    500: '#ba70fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba70fb;
$custom-light: #d29cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70fb",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 251
  },
  "hsl": {
    "h": 271.942,
    "s": 94.558,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68479,
    "c": 0.20428,
    "h": 306.3
  },
  "luminance": 0.28992
}

Semantic roles & 50–950 ramp

primary
#BA70FB
secondary
#E2F6D1
accent
#E6006B
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA70FB

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

Preview Lab → · Contrast checker → · Palette generator →

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