#BA7DEB#BA7DEB

#BA7DEB is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.6% C 0.166 H 308.2°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#BA7DEB
RGBrgb(186, 125, 235)
HSLhsl(273, 73%, 71%)
HSVhsv(273, 47%, 92%)
CMYKcmyk(20.9%, 46.8%, 0%, 7.8%)
CIE-LABlab(62.60, 43.79, -46.70)
CIE-LCHlch(62.60, 64.03, 313.16°)
OKLaboklab(69.56% 0.1028 -0.1304)
OKLCHoklch(69.56% 0.166 308.2)
XYZxyz(42.5758, 31.1050, 82.3421)
Luminance0.3110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DEB #AEEB7D
analogous
#837DEB #BA7DEB #EB7DE5
triadic
#BA7DEB #EBBA7D #7DEBBA
tetradic
#BA7DEB #EB837D #AEEB7D #7DE5EB
square
#BA7DEB #EB837D #AEEB7D #7DE5EB
split-complementary
#BA7DEB #E5EB7D #7DEB83
monochromatic
#8020CE #9E48E3 #BA7DEB #D6B2F3 #F1E4FB

Accessibility & contrast

On white

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

On black

7.22
#BA7DEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DEB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DEB#FFFFFF#000000##000000
##BA7DEB1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6195EF
Deuteranopia (green-blind)
#7298E8
Tritanopia (blue-blind)
#B38FA9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7deb;
/* rgb */ color: rgb(186, 125, 235);
/* oklch */ color: oklch(69.6% 0.166 308.2);
Tailwind
colors: {
  custom: {
    50: '#d1a4f2',
    500: '#ba7deb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7deb;
$custom-light: #d1a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7deb",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 273.273,
    "s": 73.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69556,
    "c": 0.16603,
    "h": 308.2
  },
  "luminance": 0.31104
}

Semantic roles & 50–950 ramp

primary
#BA7DEB
secondary
#E0F1D3
accent
#D51068
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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