#BA70F2#BA70F2

#BA70F2 is a light, vivid violet. Relative luminance 0.284; OKLCH L 68.0% C 0.194 H 308.4°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#BA70F2
RGBrgb(186, 112, 242)
HSLhsl(274, 83%, 69%)
HSVhsv(274, 54%, 95%)
CMYKcmyk(23.1%, 53.7%, 0%, 5.1%)
CIE-LABlab(60.28, 52.24, -54.25)
CIE-LCHlch(60.28, 75.31, 313.92°)
OKLaboklab(67.96% 0.1206 -0.1523)
OKLCHoklch(67.96% 0.194 308.4)
XYZxyz(42.0677, 28.4388, 87.2603)
Luminance0.2844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70F2 #A8F270
analogous
#7970F2 #BA70F2 #F270E9
triadic
#BA70F2 #F2BA70 #70F2BA
tetradic
#BA70F2 #F27970 #A8F270 #70E9F2
square
#BA70F2 #F27970 #A8F270 #70E9F2
split-complementary
#BA70F2 #E9F270 #70F279
monochromatic
#8113D4 #9F38ED #BA70F2 #D5A8F7 #F0E0FC

Accessibility & contrast

On white

3.14
#BA70F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#BA70F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70F2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70F2#FFFFFF#000000##000000
##BA70F21.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#478EF6
Deuteranopia (green-blind)
#6092EF
Tritanopia (blue-blind)
#B287A7
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba70f2;
/* rgb */ color: rgb(186, 112, 242);
/* oklch */ color: oklch(68.0% 0.194 308.4);
Tailwind
colors: {
  custom: {
    50: '#d29bf7',
    500: '#ba70f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba70f2;
$custom-light: #d29bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70f2",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 274.154,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67958,
    "c": 0.1943,
    "h": 308.4
  },
  "luminance": 0.28438
}

Semantic roles & 50–950 ramp

primary
#BA70F2
secondary
#DCF2CC
accent
#E00664
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70F2

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

Preview Lab → · Contrast checker → · Palette generator →

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