#BA7BB2#BA7BB2

#BA7BB2 is a light, moderate purple. Relative luminance 0.278; OKLCH L 66.6% C 0.107 H 331.3°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#BA7BB2
RGBrgb(186, 123, 178)
HSLhsl(308, 31%, 61%)
HSVhsv(308, 34%, 73%)
CMYKcmyk(0%, 33.9%, 4.3%, 27.1%)
CIE-LABlab(59.73, 33.23, -19.09)
CIE-LCHlch(59.73, 38.32, 330.12°)
OKLaboklab(66.6% 0.0939 -0.0515)
OKLCHoklch(66.6% 0.107 331.3)
XYZxyz(35.3681, 27.8209, 45.6178)
Luminance0.2782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BB2 #7BBA83
analogous
#A27BBA #BA7BB2 #BA7B92
triadic
#BA7BB2 #B2BA7B #7BB2BA
tetradic
#BA7BB2 #BAA27B #7BBA83 #7B92BA
square
#BA7BB2 #BAA27B #7BBA83 #7B92BA
split-complementary
#BA7BB2 #92BA7B #7BBAA2
monochromatic
#7B4073 #A35599 #BA7BB2 #CFA3C9 #E4CBE1

Accessibility & contrast

On white

3.20
#BA7BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#BA7BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7BB2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BB2#FFFFFF#000000##000000
##BA7BB21.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#798AB4
Deuteranopia (green-blind)
#8993B0
Tritanopia (blue-blind)
#BF7F8F
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba7bb2;
/* rgb */ color: rgb(186, 123, 178);
/* oklch */ color: oklch(66.6% 0.107 331.3);
Tailwind
colors: {
  custom: {
    50: '#d0a2c9',
    500: '#ba7bb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bb2;
$custom-light: #d0a2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bb2",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 307.619,
    "s": 31.343,
    "l": 60.588
  },
  "oklch": {
    "l": 0.66601,
    "c": 0.10709,
    "h": 331.3
  },
  "luminance": 0.27819
}

Semantic roles & 50–950 ramp

primary
#BA7BB2
secondary
#BCD4BF
accent
#AA493B
background
#FCFAFC
surface
#F9F3F8
border
#D2CDD1
text
#140F13
muted
#827F82

Preview Lab

Preview with #BA7BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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