#BA8CDC#BA8CDC

#BA8CDC is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.3% C 0.123 H 309.9°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#BA8CDC
RGBrgb(186, 140, 220)
HSLhsl(275, 53%, 71%)
HSVhsv(275, 36%, 86%)
CMYKcmyk(15.5%, 36.4%, 0%, 13.7%)
CIE-LABlab(65.25, 32.26, -34.23)
CIE-LCHlch(65.25, 47.03, 313.30°)
OKLaboklab(71.33% 0.079 -0.0945)
OKLCHoklch(71.33% 0.123 309.9)
XYZxyz(42.5437, 34.3631, 72.0878)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CDC #AEDC8C
analogous
#928CDC #BA8CDC #DC8CD6
triadic
#BA8CDC #DCBA8C #8CDCBA
tetradic
#BA8CDC #DC928C #AEDC8C #8CD6DC
square
#BA8CDC #DC928C #AEDC8C #8CD6DC
split-complementary
#BA8CDC #D6DC8C #8CDC92
monochromatic
#8037B6 #9E5DCE #BA8CDC #D6BBEA #F1E8F8

Accessibility & contrast

On white

2.67
#BA8CDC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#BA8CDC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CDC
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CDC#FFFFFF#000000##000000
##BA8CDC1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D9CDF
Deuteranopia (green-blind)
#879FDA
Tritanopia (blue-blind)
#B697AA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba8cdc;
/* rgb */ color: rgb(186, 140, 220);
/* oklch */ color: oklch(71.3% 0.123 309.9);
Tailwind
colors: {
  custom: {
    50: '#d0aee7',
    500: '#ba8cdc',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cdc;
$custom-light: #d0aee7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cdc",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 220
  },
  "hsl": {
    "h": 274.5,
    "s": 53.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71331,
    "c": 0.12314,
    "h": 309.9
  },
  "luminance": 0.34363
}

Semantic roles & 50–950 ramp

primary
#BA8CDC
secondary
#E0EDD7
accent
#C12567
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA8CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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