#BA70FE#BA70FE

#BA70FE is a light, highly saturated violet. Relative luminance 0.292; OKLCH L 68.7% C 0.208 H 305.7°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#BA70FE
RGBrgb(186, 112, 254)
HSLhsl(271, 99%, 72%)
HSVhsv(271, 56%, 100%)
CMYKcmyk(26.8%, 55.9%, 0%, 0.4%)
CIE-LABlab(60.94, 54.93, -59.82)
CIE-LCHlch(60.94, 81.22, 312.56°)
OKLaboklab(68.66% 0.1211 -0.1686)
OKLCHoklch(68.66% 0.208 305.7)
XYZxyz(43.9295, 29.1835, 97.0654)
Luminance0.2918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70FE #B4FE70
analogous
#7370FE #BA70FE #FE70FB
triadic
#BA70FE #FEBA70 #70FEBA
tetradic
#BA70FE #FE7370 #B4FE70 #70FBFE
square
#BA70FE #FE7370 #B4FE70 #70FBFE
split-complementary
#BA70FE #FBFE70 #70FE73
monochromatic
#7F02F2 #9D33FE #BA70FE #D7ADFE #F0E1FF

Accessibility & contrast

On white

3.07
#BA70FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#BA70FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70FE
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70FE#FFFFFF#000000##000000
##BA70FE1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A91FF
Deuteranopia (green-blind)
#5693FB
Tritanopia (blue-blind)
#AF8BAD
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba70fe;
/* rgb */ color: rgb(186, 112, 254);
/* oklch */ color: oklch(68.7% 0.208 305.7);
Tailwind
colors: {
  custom: {
    50: '#d29cff',
    500: '#ba70fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba70fe;
$custom-light: #d29cff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70fe",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 254
  },
  "hsl": {
    "h": 271.268,
    "s": 98.611,
    "l": 71.765
  },
  "oklch": {
    "l": 0.68656,
    "c": 0.2076,
    "h": 305.7
  },
  "luminance": 0.29183
}

Semantic roles & 50–950 ramp

primary
#BA70FE
secondary
#E4F7D3
accent
#E6006E
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA70FE

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

Preview Lab → · Contrast checker → · Palette generator →

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