#BA70FC#BA70FC

#BA70FC is a light, highly saturated violet. Relative luminance 0.291; OKLCH L 68.5% C 0.205 H 306.1°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#BA70FC
RGBrgb(186, 112, 252)
HSLhsl(272, 96%, 71%)
HSVhsv(272, 56%, 99%)
CMYKcmyk(26.2%, 55.6%, 0%, 1.2%)
CIE-LABlab(60.83, 54.48, -58.90)
CIE-LCHlch(60.83, 80.23, 312.76°)
OKLaboklab(68.54% 0.121 -0.1659)
OKLCHoklch(68.54% 0.205 306.1)
XYZxyz(43.6109, 29.0561, 95.3875)
Luminance0.2906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70FC #B2FC70
analogous
#7470FC #BA70FC #FC70F8
triadic
#BA70FC #FCBA70 #70FCBA
tetradic
#BA70FC #FC7470 #B2FC70 #70F8FC
square
#BA70FC #FC7470 #B2FC70 #70F8FC
split-complementary
#BA70FC #F8FC70 #70FC74
monochromatic
#7F05ED #9D34FB #BA70FC #D7ACFD #F1E1FE

Accessibility & contrast

On white

3.08
#BA70FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#BA70FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70FC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70FC#FFFFFF#000000##000000
##BA70FC1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C90FF
Deuteranopia (green-blind)
#5893F9
Tritanopia (blue-blind)
#AF8AAC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba70fc;
/* rgb */ color: rgb(186, 112, 252);
/* oklch */ color: oklch(68.5% 0.205 306.1);
Tailwind
colors: {
  custom: {
    50: '#d29cfe',
    500: '#ba70fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba70fc;
$custom-light: #d29cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70fc",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 252
  },
  "hsl": {
    "h": 271.714,
    "s": 95.89,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68538,
    "c": 0.20539,
    "h": 306.1
  },
  "luminance": 0.29056
}

Semantic roles & 50–950 ramp

primary
#BA70FC
secondary
#E3F6D2
accent
#E6006C
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA70FC

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

Preview Lab → · Contrast checker → · Palette generator →

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