#BA70F7#BA70F7

#BA70F7 is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.2% C 0.200 H 307.2°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#BA70F7
RGBrgb(186, 112, 247)
HSLhsl(273, 89%, 70%)
HSVhsv(273, 55%, 97%)
CMYKcmyk(24.7%, 54.7%, 0%, 3.1%)
CIE-LABlab(60.55, 53.35, -56.59)
CIE-LCHlch(60.55, 77.77, 313.32°)
OKLaboklab(68.25% 0.1209 -0.1592)
OKLCHoklch(68.25% 0.2 307.2)
XYZxyz(42.8289, 28.7433, 91.2694)
Luminance0.2874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70F7 #ADF770
analogous
#7670F7 #BA70F7 #F770F0
triadic
#BA70F7 #F7BA70 #70F7BA
tetradic
#BA70F7 #F77670 #ADF770 #70F0F7
square
#BA70F7 #F77670 #ADF770 #70F0F7
split-complementary
#BA70F7 #F0F770 #70F776
monochromatic
#800DE0 #9E36F4 #BA70F7 #D6AAFA #F1E2FD

Accessibility & contrast

On white

3.11
#BA70F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#BA70F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70F7
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70F7#FFFFFF#000000##000000
##BA70F71.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#428FFB
Deuteranopia (green-blind)
#5C93F4
Tritanopia (blue-blind)
#B189A9
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba70f7;
/* rgb */ color: rgb(186, 112, 247);
/* oklch */ color: oklch(68.2% 0.200 307.2);
Tailwind
colors: {
  custom: {
    50: '#d29cfa',
    500: '#ba70f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba70f7;
$custom-light: #d29cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70f7",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 247
  },
  "hsl": {
    "h": 272.889,
    "s": 89.404,
    "l": 70.392
  },
  "oklch": {
    "l": 0.68245,
    "c": 0.19985,
    "h": 307.2
  },
  "luminance": 0.28743
}

Semantic roles & 50–950 ramp

primary
#BA70F7
secondary
#E0F4CF
accent
#E60068
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70F7

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

Preview Lab → · Contrast checker → · Palette generator →

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