#BA7ECF#BA7ECF

#BA7ECF is a light, vivid purple. Relative luminance 0.299; OKLCH L 68.3% C 0.132 H 317.0°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#BA7ECF
RGBrgb(186, 126, 207)
HSLhsl(284, 46%, 65%)
HSVhsv(284, 39%, 81%)
CMYKcmyk(10.1%, 39.1%, 0%, 18.8%)
CIE-LABlab(61.54, 37.23, -32.73)
CIE-LCHlch(61.54, 49.58, 318.68°)
OKLaboklab(68.35% 0.0966 -0.0901)
OKLCHoklch(68.35% 0.132 317)
XYZxyz(38.9714, 29.8668, 62.7313)
Luminance0.2987 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7ECF #93CF7E
analogous
#917ECF #BA7ECF #CF7EBC
triadic
#BA7ECF #CFBA7E #7ECFBA
tetradic
#BA7ECF #CF917E #93CF7E #7EBCCF
square
#BA7ECF #CF917E #93CF7E #7EBCCF
split-complementary
#BA7ECF #BCCF7E #7ECF91
monochromatic
#813999 #A251BE #BA7ECF #D2ABE0 #EAD7F0

Accessibility & contrast

On white

3.01
#BA7ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#BA7ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7ECF
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7ECF#FFFFFF#000000##000000
##BA7ECF1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7191D2
Deuteranopia (green-blind)
#8097CD
Tritanopia (blue-blind)
#BA889D
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7ecf;
/* rgb */ color: rgb(186, 126, 207);
/* oklch */ color: oklch(68.3% 0.132 317.0);
Tailwind
colors: {
  custom: {
    50: '#d0a4de',
    500: '#ba7ecf',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ecf;
$custom-light: #d0a4de;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ecf",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 284.444,
    "s": 45.763,
    "l": 65.294
  },
  "oklch": {
    "l": 0.68347,
    "c": 0.13208,
    "h": 317
  },
  "luminance": 0.29866
}

Semantic roles & 50–950 ramp

primary
#BA7ECF
secondary
#CEE2C7
accent
#B92D51
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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