#BA7ECC#BA7ECC

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

Color values

HEX#BA7ECC
RGBrgb(186, 126, 204)
HSLhsl(286, 43%, 65%)
HSVhsv(286, 38%, 80%)
CMYKcmyk(8.8%, 38.2%, 0%, 20%)
CIE-LABlab(61.41, 36.62, -31.24)
CIE-LCHlch(61.41, 48.13, 319.53°)
OKLaboklab(68.21% 0.0959 -0.0858)
OKLCHoklch(68.21% 0.129 318.2)
XYZxyz(38.6081, 29.7215, 60.8181)
Luminance0.2972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7ECC #90CC7E
analogous
#937ECC #BA7ECC #CC7EB7
triadic
#BA7ECC #CCBA7E #7ECCBA
tetradic
#BA7ECC #CC937E #90CC7E #7EB7CC
square
#BA7ECC #CC937E #90CC7E #7EB7CC
split-complementary
#BA7ECC #B7CC7E #7ECC93
monochromatic
#803B95 #A352BB #BA7ECC #D1AADD #E9D6EF

Accessibility & contrast

On white

3.02
#BA7ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#BA7ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7ECC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7ECC#FFFFFF#000000##000000
##BA7ECC1.003.026.946.94
#FFFFFF3.021.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7390CF
Deuteranopia (green-blind)
#8296CA
Tritanopia (blue-blind)
#BA889B
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7ecc;
/* rgb */ color: rgb(186, 126, 204);
/* oklch */ color: oklch(68.2% 0.129 318.2);
Tailwind
colors: {
  custom: {
    50: '#d0a4db',
    500: '#ba7ecc',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ecc;
$custom-light: #d0a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ecc",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 286.154,
    "s": 43.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.6821,
    "c": 0.12872,
    "h": 318.2
  },
  "luminance": 0.2972
}

Semantic roles & 50–950 ramp

primary
#BA7ECC
secondary
#CCE0C6
accent
#B62F4E
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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