#BA70DC#BA70DC

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

Color values

HEX#BA70DC
RGBrgb(186, 112, 220)
HSLhsl(281, 61%, 65%)
HSVhsv(281, 49%, 86%)
CMYKcmyk(15.5%, 49.1%, 0%, 13.7%)
CIE-LABlab(59.16, 47.47, -43.77)
CIE-LCHlch(59.16, 64.57, 317.33°)
OKLaboklab(66.76% 0.1187 -0.1218)
OKLCHoklch(66.76% 0.17 314.3)
XYZxyz(38.9600, 27.1958, 70.8932)
Luminance0.2720 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70DC #92DC70
analogous
#8470DC #BA70DC #DC70C8
triadic
#BA70DC #DCBA70 #70DCBA
tetradic
#BA70DC #DC8470 #92DC70 #70C8DC
square
#BA70DC #DC8470 #92DC70 #70C8DC
split-complementary
#BA70DC #C8DC70 #70DC84
monochromatic
#8029A8 #A23FD0 #BA70DC #D2A1E8 #E9D2F4

Accessibility & contrast

On white

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

On black

6.44
#BA70DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70DC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70DC#FFFFFF#000000##000000
##BA70DC1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba70dc;
/* rgb */ color: rgb(186, 112, 220);
/* oklch */ color: oklch(66.8% 0.170 314.3);
Tailwind
colors: {
  custom: {
    50: '#d19be7',
    500: '#ba70dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba70dc;
$custom-light: #d19be7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70dc",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 281.111,
    "s": 60.674,
    "l": 65.098
  },
  "oklch": {
    "l": 0.66758,
    "c": 0.17006,
    "h": 314.3
  },
  "luminance": 0.27195
}

Semantic roles & 50–950 ramp

primary
#BA70DC
secondary
#CDE6C2
accent
#C81D53
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA70DC

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

Preview Lab → · Contrast checker → · Palette generator →

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