#BA8BD2#BA8BD2

#BA8BD2 is a light, moderate violet. Relative luminance 0.336; OKLCH L 70.7% C 0.113 H 313.8°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#BA8BD2
RGBrgb(186, 139, 210)
HSLhsl(280, 44%, 68%)
HSVhsv(280, 34%, 82%)
CMYKcmyk(11.4%, 33.8%, 0%, 17.6%)
CIE-LABlab(64.61, 30.68, -29.65)
CIE-LCHlch(64.61, 42.67, 315.98°)
OKLaboklab(70.71% 0.0781 -0.0814)
OKLCHoklch(70.71% 0.113 313.8)
XYZxyz(41.1133, 33.5582, 65.2718)
Luminance0.3356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8BD2 #A3D28B
analogous
#968BD2 #BA8BD2 #D28BC6
triadic
#BA8BD2 #D2BA8B #8BD2BA
tetradic
#BA8BD2 #D2968B #A3D28B #8BC6D2
square
#BA8BD2 #D2968B #A3D28B #8BC6D2
split-complementary
#BA8BD2 #C6D28B #8BD296
monochromatic
#813FA3 #A05FC1 #BA8BD2 #D4B7E3 #EEE3F4

Accessibility & contrast

On white

2.72
#BA8BD2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#BA8BD2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8BD2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8BD2#FFFFFF#000000##000000
##BA8BD21.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#809AD5
Deuteranopia (green-blind)
#8A9ED0
Tritanopia (blue-blind)
#B894A5
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba8bd2;
/* rgb */ color: rgb(186, 139, 210);
/* oklch */ color: oklch(70.7% 0.113 313.8);
Tailwind
colors: {
  custom: {
    50: '#cfade0',
    500: '#ba8bd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba8bd2;
$custom-light: #cfade0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8bd2",
  "rgb": {
    "r": 186,
    "g": 139,
    "b": 210
  },
  "hsl": {
    "h": 279.718,
    "s": 44.099,
    "l": 68.431
  },
  "oklch": {
    "l": 0.70711,
    "c": 0.1128,
    "h": 313.8
  },
  "luminance": 0.33557
}

Semantic roles & 50–950 ramp

primary
#BA8BD2
secondary
#D9E7D2
accent
#B72E5D
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA8BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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