#BA8CD2#BA8CD2

#BA8CD2 is a light, moderate violet. Relative luminance 0.338; OKLCH L 70.9% C 0.111 H 313.6°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#BA8CD2
RGBrgb(186, 140, 210)
HSLhsl(279, 44%, 69%)
HSVhsv(279, 33%, 82%)
CMYKcmyk(11.4%, 33.3%, 0%, 17.6%)
CIE-LABlab(64.84, 30.12, -29.29)
CIE-LCHlch(64.84, 42.02, 315.80°)
OKLaboklab(70.89% 0.0766 -0.0804)
OKLCHoklch(70.89% 0.111 313.6)
XYZxyz(41.2588, 33.8491, 65.3203)
Luminance0.3385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CD2 #A4D28C
analogous
#978CD2 #BA8CD2 #D28CC7
triadic
#BA8CD2 #D2BA8C #8CD2BA
tetradic
#BA8CD2 #D2978C #A4D28C #8CC7D2
square
#BA8CD2 #D2978C #A4D28C #8CC7D2
split-complementary
#BA8CD2 #C7D28C #8CD297
monochromatic
#8140A4 #A060C1 #BA8CD2 #D4B8E3 #EFE4F4

Accessibility & contrast

On white

2.70
#BA8CD2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#BA8CD2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CD2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CD2#FFFFFF#000000##000000
##BA8CD21.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#819BD5
Deuteranopia (green-blind)
#8B9FD0
Tritanopia (blue-blind)
#B895A6
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba8cd2;
/* rgb */ color: rgb(186, 140, 210);
/* oklch */ color: oklch(70.9% 0.111 313.6);
Tailwind
colors: {
  custom: {
    50: '#cfaee0',
    500: '#ba8cd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cd2;
$custom-light: #cfaee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cd2",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 210
  },
  "hsl": {
    "h": 279.429,
    "s": 43.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70888,
    "c": 0.11105,
    "h": 313.6
  },
  "luminance": 0.33848
}

Semantic roles & 50–950 ramp

primary
#BA8CD2
secondary
#DAE7D2
accent
#B72F5D
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA8CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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