#BA7CD9#BA7CD9

#BA7CD9 is a light, vivid purple. Relative luminance 0.299; OKLCH L 68.5% C 0.147 H 313.7°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#BA7CD9
RGBrgb(186, 124, 217)
HSLhsl(280, 55%, 67%)
HSVhsv(280, 43%, 85%)
CMYKcmyk(14.3%, 42.9%, 0%, 14.9%)
CIE-LABlab(61.54, 40.42, -38.34)
CIE-LCHlch(61.54, 55.71, 316.51°)
OKLaboklab(68.49% 0.1014 -0.1062)
OKLCHoklch(68.49% 0.147 313.7)
XYZxyz(39.9797, 29.8650, 69.2906)
Luminance0.2986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CD9 #9BD97C
analogous
#8C7CD9 #BA7CD9 #D97CCA
triadic
#BA7CD9 #D9BA7C #7CD9BA
tetradic
#BA7CD9 #D98C7C #9BD97C #7CCAD9
square
#BA7CD9 #D98C7C #9BD97C #7CCAD9
split-complementary
#BA7CD9 #CAD97C #7CD98C
monochromatic
#8131A9 #A14DCB #BA7CD9 #D3ABE7 #ECDBF5

Accessibility & contrast

On white

3.01
#BA7CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#BA7CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7CD9
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CD9#FFFFFF#000000##000000
##BA7CD91.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A91DC
Deuteranopia (green-blind)
#7A96D6
Tritanopia (blue-blind)
#B889A0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7cd9;
/* rgb */ color: rgb(186, 124, 217);
/* oklch */ color: oklch(68.5% 0.147 313.7);
Tailwind
colors: {
  custom: {
    50: '#d0a3e5',
    500: '#ba7cd9',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cd9;
$custom-light: #d0a3e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cd9",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 217
  },
  "hsl": {
    "h": 280,
    "s": 55.03,
    "l": 66.863
  },
  "oklch": {
    "l": 0.68489,
    "c": 0.14684,
    "h": 313.7
  },
  "luminance": 0.29864
}

Semantic roles & 50–950 ramp

primary
#BA7CD9
secondary
#D3E7CA
accent
#C32358
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA7CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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