#BA7EEE#BA7EEE

#BA7EEE is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.9% C 0.168 H 307.3°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#BA7EEE
RGBrgb(186, 126, 238)
HSLhsl(272, 77%, 71%)
HSVhsv(272, 47%, 93%)
CMYKcmyk(21.8%, 47.1%, 0%, 6.7%)
CIE-LABlab(62.96, 43.93, -47.80)
CIE-LCHlch(62.96, 64.92, 312.58°)
OKLaboklab(69.87% 0.1018 -0.1336)
OKLCHoklch(69.87% 0.168 307.3)
XYZxyz(43.1401, 31.5343, 84.6864)
Luminance0.3153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EEE #B2EE7E
analogous
#827EEE #BA7EEE #EE7EEA
triadic
#BA7EEE #EEBA7E #7EEEBA
tetradic
#BA7EEE #EE827E #B2EE7E #7EEAEE
square
#BA7EEE #EE827E #B2EE7E #7EEAEE
split-complementary
#BA7EEE #EAEE7E #7EEE82
monochromatic
#7F1CD5 #9D48E7 #BA7EEE #D7B4F5 #F1E4FB

Accessibility & contrast

On white

2.87
#BA7EEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#BA7EEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EEE
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EEE#FFFFFF#000000##000000
##BA7EEE1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6196F2
Deuteranopia (green-blind)
#7199EB
Tritanopia (blue-blind)
#B291AB
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7eee;
/* rgb */ color: rgb(186, 126, 238);
/* oklch */ color: oklch(69.9% 0.168 307.3);
Tailwind
colors: {
  custom: {
    50: '#d1a5f4',
    500: '#ba7eee',
    950: '#000000',
  },
}
SCSS
$custom: #ba7eee;
$custom-light: #d1a5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7eee",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 272.143,
    "s": 76.712,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69873,
    "c": 0.16795,
    "h": 307.3
  },
  "luminance": 0.31534
}

Semantic roles & 50–950 ramp

primary
#BA7EEE
secondary
#E3F2D5
accent
#D90D6B
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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