#BA7ECB#BA7ECB

#BA7ECB is a light, vivid purple. Relative luminance 0.297; OKLCH L 68.2% C 0.128 H 318.6°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#BA7ECB
RGBrgb(186, 126, 203)
HSLhsl(287, 43%, 65%)
HSVhsv(287, 38%, 80%)
CMYKcmyk(8.4%, 37.9%, 0%, 20.4%)
CIE-LABlab(61.37, 36.42, -30.74)
CIE-LCHlch(61.37, 47.66, 319.83°)
OKLaboklab(68.16% 0.0957 -0.0844)
OKLCHoklch(68.16% 0.128 318.6)
XYZxyz(38.4886, 29.6737, 60.1885)
Luminance0.2967 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7ECB #8FCB7E
analogous
#947ECB #BA7ECB #CB7EB6
triadic
#BA7ECB #CBBA7E #7ECBBA
tetradic
#BA7ECB #CB947E #8FCB7E #7EB6CB
square
#BA7ECB #CB947E #8FCB7E #7EB6CB
split-complementary
#BA7ECB #B6CB7E #7ECB94
monochromatic
#803B93 #A352B9 #BA7ECB #D1AADD #E9D5EE

Accessibility & contrast

On white

3.03
#BA7ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#BA7ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7ECB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7ECB#FFFFFF#000000##000000
##BA7ECB1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7390CE
Deuteranopia (green-blind)
#8296C9
Tritanopia (blue-blind)
#BA879B
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7ecb;
/* rgb */ color: rgb(186, 126, 203);
/* oklch */ color: oklch(68.2% 0.128 318.6);
Tailwind
colors: {
  custom: {
    50: '#d0a4db',
    500: '#ba7ecb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ecb;
$custom-light: #d0a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ecb",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 286.753,
    "s": 42.541,
    "l": 64.51
  },
  "oklch": {
    "l": 0.68165,
    "c": 0.12761,
    "h": 318.6
  },
  "luminance": 0.29673
}

Semantic roles & 50–950 ramp

primary
#BA7ECB
secondary
#CBE0C5
accent
#B6304D
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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