#BA70F8#BA70F8

#BA70F8 is a light, highly saturated violet. Relative luminance 0.288; OKLCH L 68.3% C 0.201 H 307.0°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#BA70F8
RGBrgb(186, 112, 248)
HSLhsl(273, 91%, 71%)
HSVhsv(273, 55%, 97%)
CMYKcmyk(25%, 54.8%, 0%, 2.7%)
CIE-LABlab(60.61, 53.58, -57.05)
CIE-LCHlch(60.61, 78.26, 313.20°)
OKLaboklab(68.3% 0.1209 -0.1605)
OKLCHoklch(68.3% 0.201 307)
XYZxyz(42.9837, 28.8052, 92.0843)
Luminance0.2880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70F8 #AEF870
analogous
#7670F8 #BA70F8 #F870F2
triadic
#BA70F8 #F8BA70 #70F8BA
tetradic
#BA70F8 #F87670 #AEF870 #70F2F8
square
#BA70F8 #F87670 #AEF870 #70F2F8
split-complementary
#BA70F8 #F2F870 #70F876
monochromatic
#800BE3 #9E36F5 #BA70F8 #D6AAFB #F1E2FE

Accessibility & contrast

On white

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

On black

6.76
#BA70F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70F8
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70F8#FFFFFF#000000##000000
##BA70F81.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFC
Deuteranopia (green-blind)
#5C93F5
Tritanopia (blue-blind)
#B089AA
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba70f8;
/* rgb */ color: rgb(186, 112, 248);
/* oklch */ color: oklch(68.3% 0.201 307.0);
Tailwind
colors: {
  custom: {
    50: '#d29cfb',
    500: '#ba70f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba70f8;
$custom-light: #d29cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70f8",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 272.647,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.68303,
    "c": 0.20096,
    "h": 307
  },
  "luminance": 0.28805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA70F8

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

Preview Lab → · Contrast checker → · Palette generator →

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