#BA8CD5#BA8CD5

#BA8CD5 is a light, moderate violet. Relative luminance 0.340; OKLCH L 71.0% C 0.115 H 312.4°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#BA8CD5
RGBrgb(186, 140, 213)
HSLhsl(278, 46%, 69%)
HSVhsv(278, 34%, 84%)
CMYKcmyk(12.7%, 34.3%, 0%, 16.5%)
CIE-LABlab(64.96, 30.76, -30.78)
CIE-LCHlch(64.96, 43.51, 314.98°)
OKLaboklab(71.02% 0.0774 -0.0846)
OKLCHoklch(71.02% 0.115 312.4)
XYZxyz(41.6360, 34.0000, 67.3072)
Luminance0.3400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CD5 #A7D58C
analogous
#968CD5 #BA8CD5 #D58CCC
triadic
#BA8CD5 #D5BA8C #8CD5BA
tetradic
#BA8CD5 #D5968C #A7D58C #8CCCD5
square
#BA8CD5 #D5968C #A7D58C #8CCCD5
split-complementary
#BA8CD5 #CCD58C #8CD596
monochromatic
#813EA9 #9F5FC5 #BA8CD5 #D5B9E5 #F0E6F6

Accessibility & contrast

On white

2.69
#BA8CD5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#BA8CD5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CD5
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CD5#FFFFFF#000000##000000
##BA8CD51.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#809BD8
Deuteranopia (green-blind)
#8A9FD3
Tritanopia (blue-blind)
#B896A7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba8cd5;
/* rgb */ color: rgb(186, 140, 213);
/* oklch */ color: oklch(71.0% 0.115 312.4);
Tailwind
colors: {
  custom: {
    50: '#cfaee2',
    500: '#ba8cd5',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cd5;
$custom-light: #cfaee2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cd5",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 213
  },
  "hsl": {
    "h": 277.808,
    "s": 46.497,
    "l": 69.216
  },
  "oklch": {
    "l": 0.71019,
    "c": 0.11464,
    "h": 312.4
  },
  "luminance": 0.33999
}

Semantic roles & 50–950 ramp

primary
#BA8CD5
secondary
#DCE9D4
accent
#BA2C60
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA8CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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