#BA7CB2#BA7CB2

#BA7CB2 is a light, moderate purple. Relative luminance 0.281; OKLCH L 66.8% C 0.105 H 331.3°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#BA7CB2
RGBrgb(186, 124, 178)
HSLhsl(308, 31%, 61%)
HSVhsv(308, 33%, 73%)
CMYKcmyk(0%, 33.3%, 4.3%, 27.1%)
CIE-LABlab(59.95, 32.68, -18.75)
CIE-LCHlch(59.95, 37.67, 330.16°)
OKLaboklab(66.77% 0.0924 -0.0505)
OKLCHoklch(66.77% 0.105 331.3)
XYZxyz(35.4927, 28.0703, 45.6594)
Luminance0.2807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CB2 #7CBA84
analogous
#A37CBA #BA7CB2 #BA7C93
triadic
#BA7CB2 #B2BA7C #7CB2BA
tetradic
#BA7CB2 #BAA37C #7CBA84 #7C93BA
square
#BA7CB2 #BAA37C #7CBA84 #7C93BA
split-complementary
#BA7CB2 #93BA7C #7CBAA3
monochromatic
#7B4173 #A35699 #BA7CB2 #CFA4CA #E4CCE1

Accessibility & contrast

On white

3.18
#BA7CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#BA7CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7CB2
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CB2#FFFFFF#000000##000000
##BA7CB21.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A8BB4
Deuteranopia (green-blind)
#8A94B0
Tritanopia (blue-blind)
#BF8090
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba7cb2;
/* rgb */ color: rgb(186, 124, 178);
/* oklch */ color: oklch(66.8% 0.105 331.3);
Tailwind
colors: {
  custom: {
    50: '#cfa3c9',
    500: '#ba7cb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cb2;
$custom-light: #cfa3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cb2",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 178
  },
  "hsl": {
    "h": 307.742,
    "s": 31,
    "l": 60.784
  },
  "oklch": {
    "l": 0.66772,
    "c": 0.10527,
    "h": 331.3
  },
  "luminance": 0.28069
}

Semantic roles & 50–950 ramp

primary
#BA7CB2
secondary
#BDD5C0
accent
#AA4A3C
background
#FCFAFC
surface
#F9F4F8
border
#D2CED1
text
#140F13
muted
#827F82

Preview Lab

Preview with #BA7CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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