#BA7BEE#BA7BEE

#BA7BEE is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.4% C 0.173 H 307.8°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#BA7BEE
RGBrgb(186, 123, 238)
HSLhsl(273, 77%, 71%)
HSVhsv(273, 48%, 93%)
CMYKcmyk(21.8%, 48.3%, 0%, 6.7%)
CIE-LABlab(62.32, 45.54, -48.80)
CIE-LCHlch(62.32, 66.75, 313.02°)
OKLaboklab(69.4% 0.1059 -0.1365)
OKLCHoklch(69.4% 0.173 307.8)
XYZxyz(42.7622, 30.7786, 84.5605)
Luminance0.3078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BEE #AFEE7B
analogous
#807BEE #BA7BEE #EE7BE8
triadic
#BA7BEE #EEBA7B #7BEEBA
tetradic
#BA7BEE #EE807B #AFEE7B #7BE8EE
square
#BA7BEE #EE807B #AFEE7B #7BE8EE
split-complementary
#BA7BEE #E8EE7B #7BEE80
monochromatic
#801BD3 #9E45E7 #BA7BEE #D6B1F5 #F1E4FC

Accessibility & contrast

On white

2.93
#BA7BEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#BA7BEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BEE
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BEE#FFFFFF#000000##000000
##BA7BEE1.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C94F2
Deuteranopia (green-blind)
#6E97EB
Tritanopia (blue-blind)
#B38EA9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ba7bee;
/* rgb */ color: rgb(186, 123, 238);
/* oklch */ color: oklch(69.4% 0.173 307.8);
Tailwind
colors: {
  custom: {
    50: '#d1a3f4',
    500: '#ba7bee',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bee;
$custom-light: #d1a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bee",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 272.87,
    "s": 77.181,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69399,
    "c": 0.17272,
    "h": 307.8
  },
  "luminance": 0.30778
}

Semantic roles & 50–950 ramp

primary
#BA7BEE
secondary
#E1F2D3
accent
#D90C69
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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