#BA7CEE#BA7CEE

#BA7CEE is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.6% C 0.171 H 307.6°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#BA7CEE
RGBrgb(186, 124, 238)
HSLhsl(273, 77%, 71%)
HSVhsv(273, 48%, 93%)
CMYKcmyk(21.8%, 47.9%, 0%, 6.7%)
CIE-LABlab(62.53, 45.00, -48.47)
CIE-LCHlch(62.53, 66.14, 312.88°)
OKLaboklab(69.56% 0.1045 -0.1355)
OKLCHoklch(69.56% 0.171 307.6)
XYZxyz(42.8869, 31.0279, 84.6020)
Luminance0.3103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CEE #B0EE7C
analogous
#817CEE #BA7CEE #EE7CE9
triadic
#BA7CEE #EEBA7C #7CEEBA
tetradic
#BA7CEE #EE817C #B0EE7C #7CE9EE
square
#BA7CEE #EE817C #B0EE7C #7CE9EE
split-complementary
#BA7CEE #E9EE7C #7CEE81
monochromatic
#801CD4 #9D46E7 #BA7CEE #D7B2F5 #F1E4FB

Accessibility & contrast

On white

2.91
#BA7CEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#BA7CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7CEE
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CEE#FFFFFF#000000##000000
##BA7CEE1.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E95F2
Deuteranopia (green-blind)
#6F98EB
Tritanopia (blue-blind)
#B38FAA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7cee;
/* rgb */ color: rgb(186, 124, 238);
/* oklch */ color: oklch(69.6% 0.171 307.6);
Tailwind
colors: {
  custom: {
    50: '#d1a3f4',
    500: '#ba7cee',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cee;
$custom-light: #d1a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cee",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 238
  },
  "hsl": {
    "h": 272.632,
    "s": 77.027,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69556,
    "c": 0.17113,
    "h": 307.6
  },
  "luminance": 0.31027
}

Semantic roles & 50–950 ramp

primary
#BA7CEE
secondary
#E2F2D4
accent
#D90C6A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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