#BA7DB2#BA7DB2

#BA7DB2 is a light, moderate purple. Relative luminance 0.283; OKLCH L 66.9% C 0.103 H 331.4°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#BA7DB2
RGBrgb(186, 125, 178)
HSLhsl(308, 31%, 61%)
HSVhsv(308, 33%, 73%)
CMYKcmyk(0%, 32.8%, 4.3%, 27.1%)
CIE-LABlab(60.18, 32.13, -18.40)
CIE-LCHlch(60.18, 37.02, 330.19°)
OKLaboklab(66.94% 0.0908 -0.0496)
OKLCHoklch(66.94% 0.103 331.4)
XYZxyz(35.6187, 28.3222, 45.7014)
Luminance0.2832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DB2 #7DBA85
analogous
#A37DBA #BA7DB2 #BA7D93
triadic
#BA7DB2 #B2BA7D #7DB2BA
tetradic
#BA7DB2 #BAA37D #7DBA85 #7D93BA
square
#BA7DB2 #BAA37D #7DBA85 #7D93BA
split-complementary
#BA7DB2 #93BA7D #7DBAA3
monochromatic
#7B4174 #A35799 #BA7DB2 #CFA5CA #E4CDE1

Accessibility & contrast

On white

3.15
#BA7DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#BA7DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DB2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DB2#FFFFFF#000000##000000
##BA7DB21.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8CB4
Deuteranopia (green-blind)
#8A94B0
Tritanopia (blue-blind)
#BF8190
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba7db2;
/* rgb */ color: rgb(186, 125, 178);
/* oklch */ color: oklch(66.9% 0.103 331.4);
Tailwind
colors: {
  custom: {
    50: '#cfa3c9',
    500: '#ba7db2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7db2;
$custom-light: #cfa3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7db2",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 307.869,
    "s": 30.653,
    "l": 60.98
  },
  "oklch": {
    "l": 0.66944,
    "c": 0.10344,
    "h": 331.4
  },
  "luminance": 0.28321
}

Semantic roles & 50–950 ramp

primary
#BA7DB2
secondary
#BED5C1
accent
#A94A3C
background
#FCFAFC
surface
#F9F4F8
border
#D2CED1
text
#140F13
muted
#827F82

Preview Lab

Preview with #BA7DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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