#BA70ED#BA70ED

#BA70ED is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.7% C 0.189 H 309.6°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#BA70ED
RGBrgb(186, 112, 237)
HSLhsl(276, 78%, 68%)
HSVhsv(276, 53%, 93%)
CMYKcmyk(21.5%, 52.7%, 0%, 7.1%)
CIE-LABlab(60.02, 51.13, -51.90)
CIE-LCHlch(60.02, 72.86, 314.57°)
OKLaboklab(67.68% 0.1203 -0.1455)
OKLCHoklch(67.68% 0.189 309.6)
XYZxyz(41.3270, 28.1426, 83.3593)
Luminance0.2814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70ED #A3ED70
analogous
#7B70ED #BA70ED #ED70E1
triadic
#BA70ED #EDBA70 #70EDBA
tetradic
#BA70ED #ED7B70 #A3ED70 #70E1ED
square
#BA70ED #ED7B70 #A3ED70 #70E1ED
split-complementary
#BA70ED #E1ED70 #70ED7B
monochromatic
#8119C9 #A03AE6 #BA70ED #D4A6F4 #EEDDFB

Accessibility & contrast

On white

3.17
#BA70ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#BA70ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70ED
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70ED#FFFFFF#000000##000000
##BA70ED1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8DF1
Deuteranopia (green-blind)
#6492EA
Tritanopia (blue-blind)
#B386A4
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba70ed;
/* rgb */ color: rgb(186, 112, 237);
/* oklch */ color: oklch(67.7% 0.189 309.6);
Tailwind
colors: {
  custom: {
    50: '#d19bf3',
    500: '#ba70ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba70ed;
$custom-light: #d19bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70ed",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 237
  },
  "hsl": {
    "h": 275.52,
    "s": 77.64,
    "l": 68.431
  },
  "oklch": {
    "l": 0.67676,
    "c": 0.18876,
    "h": 309.6
  },
  "luminance": 0.28142
}

Semantic roles & 50–950 ramp

primary
#BA70ED
secondary
#D9EFCA
accent
#DA0C60
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA70ED

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

Preview Lab → · Contrast checker → · Palette generator →

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