#BA7DBE#BA7DBE

#BA7DBE is a light, moderate purple. Relative luminance 0.288; OKLCH L 67.4% C 0.115 H 324.6°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#BA7DBE
RGBrgb(186, 125, 190)
HSLhsl(296, 33%, 62%)
HSVhsv(296, 34%, 75%)
CMYKcmyk(2.1%, 34.2%, 0%, 25.5%)
CIE-LABlab(60.63, 34.39, -24.54)
CIE-LCHlch(60.63, 42.25, 324.48°)
OKLaboklab(67.43% 0.0941 -0.0668)
OKLCHoklch(67.43% 0.115 324.6)
XYZxyz(36.8766, 28.8254, 52.3265)
Luminance0.2882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DBE #81BE7D
analogous
#9A7DBE #BA7DBE #BE7DA2
triadic
#BA7DBE #BEBA7D #7DBEBA
tetradic
#BA7DBE #BE9A7D #81BE7D #7DA2BE
square
#BA7DBE #BE9A7D #81BE7D #7DA2BE
split-complementary
#BA7DBE #A2BE7D #7DBE9A
monochromatic
#7C4080 #A455A9 #BA7DBE #D0A6D2 #E5CFE7

Accessibility & contrast

On white

3.10
#BA7DBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#BA7DBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DBE
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DBE#FFFFFF#000000##000000
##BA7DBE1.003.106.766.76
#FFFFFF3.101.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#778EC0
Deuteranopia (green-blind)
#8695BC
Tritanopia (blue-blind)
#BD8395
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba7dbe;
/* rgb */ color: rgb(186, 125, 190);
/* oklch */ color: oklch(67.4% 0.115 324.6);
Tailwind
colors: {
  custom: {
    50: '#d0a3d1',
    500: '#ba7dbe',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dbe;
$custom-light: #d0a3d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dbe",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 190
  },
  "hsl": {
    "h": 296.308,
    "s": 33.333,
    "l": 61.765
  },
  "oklch": {
    "l": 0.67432,
    "c": 0.11539,
    "h": 324.6
  },
  "luminance": 0.28824
}

Semantic roles & 50–950 ramp

primary
#BA7DBE
secondary
#C1D7BF
accent
#AC3940
background
#FCFAFC
surface
#F9F4F9
border
#D2CED2
text
#140F14
muted
#827F82

Preview Lab

Preview with #BA7DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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