#BA70DD#BA70DD

#BA70DD is a light, vivid purple. Relative luminance 0.272; OKLCH L 66.8% C 0.171 H 314.0°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#BA70DD
RGBrgb(186, 112, 221)
HSLhsl(281, 62%, 65%)
HSVhsv(281, 49%, 87%)
CMYKcmyk(15.8%, 49.3%, 0%, 13.3%)
CIE-LABlab(59.20, 47.69, -44.25)
CIE-LCHlch(59.20, 65.05, 317.14°)
OKLaboklab(66.81% 0.1188 -0.1232)
OKLCHoklch(66.81% 0.171 314)
XYZxyz(39.0929, 27.2489, 71.5928)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70DD #93DD70
analogous
#8370DD #BA70DD #DD70C9
triadic
#BA70DD #DDBA70 #70DDBA
tetradic
#BA70DD #DD8370 #93DD70 #70C9DD
square
#BA70DD #DD8370 #93DD70 #70C9DD
split-complementary
#BA70DD #C9DD70 #70DD83
monochromatic
#8128AA #A23FD1 #BA70DD #D2A1E9 #EAD3F5

Accessibility & contrast

On white

3.26
#BA70DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#BA70DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70DD
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70DD#FFFFFF#000000##000000
##BA70DD1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#588AE1
Deuteranopia (green-blind)
#6E90DA
Tritanopia (blue-blind)
#B7819C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba70dd;
/* rgb */ color: rgb(186, 112, 221);
/* oklch */ color: oklch(66.8% 0.171 314.0);
Tailwind
colors: {
  custom: {
    50: '#d19be8',
    500: '#ba70dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba70dd;
$custom-light: #d19be8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70dd",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 221
  },
  "hsl": {
    "h": 280.734,
    "s": 61.582,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6681,
    "c": 0.17116,
    "h": 314
  },
  "luminance": 0.27248
}

Semantic roles & 50–950 ramp

primary
#BA70DD
secondary
#CEE7C2
accent
#C91C54
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA70DD

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

Preview Lab → · Contrast checker → · Palette generator →

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