#BA4EF7#BA4EF7

#BA4EF7 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 64.0% C 0.246 H 310.6°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA4EF7
RGBrgb(186, 78, 247)
HSLhsl(278, 91%, 64%)
HSVhsv(278, 68%, 97%)
CMYKcmyk(24.7%, 68.4%, 0%, 3.1%)
CIE-LABlab(54.66, 69.36, -66.04)
CIE-LCHlch(54.66, 95.77, 316.41°)
OKLaboklab(63.97% 0.1598 -0.1867)
OKLCHoklch(63.97% 0.246 310.6)
XYZxyz(39.7594, 22.6042, 90.2462)
Luminance0.2260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EF7 #8BF74E
analogous
#654EF7 #BA4EF7 #F74EDF
triadic
#BA4EF7 #F7BA4E #4EF7BA
tetradic
#BA4EF7 #F7654E #8BF74E #4EDFF7
square
#BA4EF7 #F7654E #8BF74E #4EDFF7
split-complementary
#BA4EF7 #DFF74E #4EF765
monochromatic
#7F09C2 #A313F4 #BA4EF7 #D189FA #E8C3FC

Accessibility & contrast

On white

3.80
#BA4EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#BA4EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EF7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EF7#FFFFFF#000000##000000
##BA4EF71.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#3485F3
Tritanopia (blue-blind)
#B2729D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba4ef7;
/* rgb */ color: rgb(186, 78, 247);
/* oklch */ color: oklch(64.0% 0.246 310.6);
Tailwind
colors: {
  custom: {
    50: '#d388fb',
    500: '#ba4ef7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ef7;
$custom-light: #d388fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ef7",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 247
  },
  "hsl": {
    "h": 278.343,
    "s": 91.351,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63974,
    "c": 0.24574,
    "h": 310.6
  },
  "luminance": 0.22603
}

Semantic roles & 50–950 ramp

primary
#BA4EF7
secondary
#C8EEB3
accent
#E60053
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA4EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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