#BA70CB#BA70CB

#BA70CB is a light, vivid purple. Relative luminance 0.263; OKLCH L 65.9% C 0.152 H 319.9°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#BA70CB
RGBrgb(186, 112, 203)
HSLhsl(289, 47%, 62%)
HSVhsv(289, 45%, 80%)
CMYKcmyk(8.4%, 44.8%, 0%, 20.4%)
CIE-LABlab(58.36, 43.98, -35.43)
CIE-LCHlch(58.36, 56.48, 321.15°)
OKLaboklab(65.91% 0.1162 -0.0977)
OKLCHoklch(65.91% 0.152 319.9)
XYZxyz(36.8220, 26.3406, 59.6329)
Luminance0.2634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA70CB #81CB70
analogous
#8D70CB #BA70CB #CB70AF
triadic
#BA70CB #CBBA70 #70CBBA
tetradic
#BA70CB #CB8D70 #81CB70 #70AFCB
square
#BA70CB #CB8D70 #81CB70 #70AFCB
split-complementary
#BA70CB #AFCB70 #70CB8D
monochromatic
#7C338D #A444BA #BA70CB #D09DDB #E5CAEC

Accessibility & contrast

On white

3.35
#BA70CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#BA70CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA70CB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA70CB#FFFFFF#000000##000000
##BA70CB1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CE
Deuteranopia (green-blind)
#778FC8
Tritanopia (blue-blind)
#BB7C94
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba70cb;
/* rgb */ color: rgb(186, 112, 203);
/* oklch */ color: oklch(65.9% 0.152 319.9);
Tailwind
colors: {
  custom: {
    50: '#d09bdb',
    500: '#ba70cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba70cb;
$custom-light: #d09bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba70cb",
  "rgb": {
    "r": 186,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 288.791,
    "s": 46.667,
    "l": 61.765
  },
  "oklch": {
    "l": 0.65905,
    "c": 0.15182,
    "h": 319.9
  },
  "luminance": 0.26339
}

Semantic roles & 50–950 ramp

primary
#BA70CB
secondary
#C1DCBB
accent
#BA2C46
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA70CB

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

Preview Lab → · Contrast checker → · Palette generator →

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