#BA7EE8#BA7EE8

#BA7EE8 is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.6% C 0.161 H 308.9°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#BA7EE8
RGBrgb(186, 126, 232)
HSLhsl(274, 70%, 70%)
HSVhsv(274, 46%, 91%)
CMYKcmyk(19.8%, 45.7%, 0%, 9%)
CIE-LABlab(62.67, 42.59, -44.93)
CIE-LCHlch(62.67, 61.91, 313.47°)
OKLaboklab(69.56% 0.101 -0.1252)
OKLCHoklch(69.56% 0.161 308.9)
XYZxyz(42.2733, 31.1876, 80.1211)
Luminance0.3119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EE8 #ACE87E
analogous
#857EE8 #BA7EE8 #E87EE1
triadic
#BA7EE8 #E8BA7E #7EE8BA
tetradic
#BA7EE8 #E8857E #ACE87E #7EE1E8
square
#BA7EE8 #E8857E #ACE87E #7EE1E8
split-complementary
#BA7EE8 #E1E87E #7EE885
monochromatic
#8124C8 #9E4ADF #BA7EE8 #D6B2F1 #F1E5FA

Accessibility & contrast

On white

2.90
#BA7EE8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.24
#BA7EE8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EE8
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EE8#FFFFFF#000000##000000
##BA7EE81.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6595EC
Deuteranopia (green-blind)
#7498E5
Tritanopia (blue-blind)
#B48FA8
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7ee8;
/* rgb */ color: rgb(186, 126, 232);
/* oklch */ color: oklch(69.6% 0.161 308.9);
Tailwind
colors: {
  custom: {
    50: '#d1a5f0',
    500: '#ba7ee8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ee8;
$custom-light: #d1a5f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ee8",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 232
  },
  "hsl": {
    "h": 273.962,
    "s": 69.737,
    "l": 70.196
  },
  "oklch": {
    "l": 0.69561,
    "c": 0.16091,
    "h": 308.9
  },
  "luminance": 0.31187
}

Semantic roles & 50–950 ramp

primary
#BA7EE8
secondary
#DFF0D2
accent
#D21466
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #BA7EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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