#BA7EFC#BA7EFC

#BA7EFC is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.6% C 0.184 H 304.1°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#BA7EFC
RGBrgb(186, 126, 252)
HSLhsl(269, 95%, 74%)
HSVhsv(269, 50%, 99%)
CMYKcmyk(26.2%, 50%, 0%, 1.2%)
CIE-LABlab(63.66, 47.12, -54.39)
CIE-LCHlch(63.66, 71.96, 310.90°)
OKLaboklab(70.63% 0.1033 -0.1528)
OKLCHoklch(70.63% 0.184 304.1)
XYZxyz(45.2774, 32.3892, 95.9430)
Luminance0.3239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EFC #C0FC7E
analogous
#7E81FC #BA7EFC #F97EFC
triadic
#BA7EFC #FCBA7E #7EFCBA
tetradic
#BA7EFC #FC7E81 #C0FC7E #7EFCF9
square
#BA7EFC #FC7E81 #C0FC7E #7EFCF9
split-complementary
#BA7EFC #FCF97E #81FC7E
monochromatic
#7A06F9 #9A42FB #BA7EFC #DABAFD #EFE1FE

Accessibility & contrast

On white

2.81
#BA7EFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#BA7EFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EFC
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EFC#FFFFFF#000000##000000
##BA7EFC1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5799FF
Deuteranopia (green-blind)
#689AF9
Tritanopia (blue-blind)
#AF95B1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba7efc;
/* rgb */ color: rgb(186, 126, 252);
/* oklch */ color: oklch(70.6% 0.184 304.1);
Tailwind
colors: {
  custom: {
    50: '#d1a5fe',
    500: '#ba7efc',
    950: '#000000',
  },
}
SCSS
$custom: #ba7efc;
$custom-light: #d1a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7efc",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 268.571,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70629,
    "c": 0.18442,
    "h": 304.1
  },
  "luminance": 0.32389
}

Semantic roles & 50–950 ramp

primary
#BA7EFC
secondary
#E6F7D4
accent
#E60078
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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