#BA7DEE#BA7DEE

#BA7DEE is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.7% C 0.170 H 307.5°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#BA7DEE
RGBrgb(186, 125, 238)
HSLhsl(272, 77%, 71%)
HSVhsv(272, 47%, 93%)
CMYKcmyk(21.8%, 47.5%, 0%, 6.7%)
CIE-LABlab(62.74, 44.47, -48.13)
CIE-LCHlch(62.74, 65.53, 312.73°)
OKLaboklab(69.71% 0.1032 -0.1345)
OKLCHoklch(69.71% 0.17 307.5)
XYZxyz(43.0129, 31.2798, 84.6440)
Luminance0.3128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DEE #B1EE7D
analogous
#817DEE #BA7DEE #EE7DEA
triadic
#BA7DEE #EEBA7D #7DEEBA
tetradic
#BA7DEE #EE817D #B1EE7D #7DEAEE
square
#BA7DEE #EE817D #B1EE7D #7DEAEE
split-complementary
#BA7DEE #EAEE7D #7DEE81
monochromatic
#801CD5 #9D47E7 #BA7DEE #D7B3F5 #F1E4FB

Accessibility & contrast

On white

2.89
#BA7DEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#BA7DEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DEE
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DEE#FFFFFF#000000##000000
##BA7DEE1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F95F2
Deuteranopia (green-blind)
#7098EB
Tritanopia (blue-blind)
#B290AA
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7dee;
/* rgb */ color: rgb(186, 125, 238);
/* oklch */ color: oklch(69.7% 0.170 307.5);
Tailwind
colors: {
  custom: {
    50: '#d1a4f4',
    500: '#ba7dee',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dee;
$custom-light: #d1a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dee",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 238
  },
  "hsl": {
    "h": 272.389,
    "s": 76.871,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69714,
    "c": 0.16954,
    "h": 307.5
  },
  "luminance": 0.31279
}

Semantic roles & 50–950 ramp

primary
#BA7DEE
secondary
#E2F2D5
accent
#D90C6B
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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