#BA70DB#BA70DB

#BA70DB is a light, vivid purple. Relative luminance 0.271; OKLCH L 66.7% C 0.169 H 314.6°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#BA70DB
RGBrgb(186, 112, 219)
HSLhsl(281, 60%, 65%)
HSVhsv(281, 49%, 86%)
CMYKcmyk(15.1%, 48.9%, 0%, 14.1%)
CIE-LABlab(59.11, 47.26, -43.28)
CIE-LCHlch(59.11, 64.09, 317.52°)
OKLaboklab(66.71% 0.1186 -0.1204)
OKLCHoklch(66.71% 0.169 314.6)
XYZxyz(38.8280, 27.1430, 70.1978)
Luminance0.2714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70DB #91DB70
analogous
#8470DB #BA70DB #DB70C7
triadic
#BA70DB #DBBA70 #70DBBA
tetradic
#BA70DB #DB8470 #91DB70 #70C7DB
square
#BA70DB #DB8470 #91DB70 #70C7DB
split-complementary
#BA70DB #C7DB70 #70DB84
monochromatic
#802AA7 #A23FCF #BA70DB #D2A1E7 #E9D2F4

Accessibility & contrast

On white

3.27
#BA70DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#BA70DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70DB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70DB#FFFFFF#000000##000000
##BA70DB1.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#598ADF
Deuteranopia (green-blind)
#6F90D8
Tritanopia (blue-blind)
#B8809B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba70db;
/* rgb */ color: rgb(186, 112, 219);
/* oklch */ color: oklch(66.7% 0.169 314.6);
Tailwind
colors: {
  custom: {
    50: '#d19be6',
    500: '#ba70db',
    950: '#000000',
  },
}
SCSS
$custom: #ba70db;
$custom-light: #d19be6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70db",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 281.495,
    "s": 59.777,
    "l": 64.902
  },
  "oklch": {
    "l": 0.66706,
    "c": 0.16898,
    "h": 314.6
  },
  "luminance": 0.27142
}

Semantic roles & 50–950 ramp

primary
#BA70DB
secondary
#CCE6C1
accent
#C71E52
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA70DB

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

Preview Lab → · Contrast checker → · Palette generator →

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