#BA7EBE#BA7EBE

#BA7EBE is a light, moderate purple. Relative luminance 0.291; OKLCH L 67.6% C 0.114 H 324.6°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#BA7EBE
RGBrgb(186, 126, 190)
HSLhsl(296, 33%, 62%)
HSVhsv(296, 34%, 75%)
CMYKcmyk(2.1%, 33.7%, 0%, 25.5%)
CIE-LABlab(60.85, 33.84, -24.20)
CIE-LCHlch(60.85, 41.60, 324.43°)
OKLaboklab(67.6% 0.0926 -0.0658)
OKLCHoklch(67.6% 0.114 324.6)
XYZxyz(37.0039, 29.0798, 52.3690)
Luminance0.2908 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EBE #82BE7E
analogous
#9A7EBE #BA7EBE #BE7EA2
triadic
#BA7EBE #BEBA7E #7EBEBA
tetradic
#BA7EBE #BE9A7E #82BE7E #7EA2BE
square
#BA7EBE #BE9A7E #82BE7E #7EA2BE
split-complementary
#BA7EBE #A2BE7E #7EBE9A
monochromatic
#7D4181 #A455A9 #BA7EBE #D0A7D3 #E6CFE7

Accessibility & contrast

On white

3.08
#BA7EBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#BA7EBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7EBE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EBE#FFFFFF#000000##000000
##BA7EBE1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#788EC0
Deuteranopia (green-blind)
#8795BC
Tritanopia (blue-blind)
#BD8496
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba7ebe;
/* rgb */ color: rgb(186, 126, 190);
/* oklch */ color: oklch(67.6% 0.114 324.6);
Tailwind
colors: {
  custom: {
    50: '#cfa4d1',
    500: '#ba7ebe',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ebe;
$custom-light: #cfa4d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ebe",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 190
  },
  "hsl": {
    "h": 296.25,
    "s": 32.99,
    "l": 61.961
  },
  "oklch": {
    "l": 0.67602,
    "c": 0.11358,
    "h": 324.6
  },
  "luminance": 0.29079
}

Semantic roles & 50–950 ramp

primary
#BA7EBE
secondary
#C2D8C0
accent
#AC3A41
background
#FCFAFC
surface
#F9F4F9
border
#D2CED2
text
#140F14
muted
#827F82

Preview Lab

Preview with #BA7EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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