#BA4DF7#BA4DF7

#BA4DF7 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.9% C 0.247 H 310.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#BA4DF7
RGBrgb(186, 77, 247)
HSLhsl(278, 91%, 64%)
HSVhsv(278, 69%, 97%)
CMYKcmyk(24.7%, 68.8%, 0%, 3.1%)
CIE-LABlab(54.52, 69.78, -66.27)
CIE-LCHlch(54.52, 96.23, 316.47°)
OKLaboklab(63.87% 0.1608 -0.1874)
OKLCHoklch(63.87% 0.247 310.6)
XYZxyz(39.6889, 22.4632, 90.2227)
Luminance0.2246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DF7 #8AF74D
analogous
#654DF7 #BA4DF7 #F74DDF
triadic
#BA4DF7 #F7BA4D #4DF7BA
tetradic
#BA4DF7 #F7654D #8AF74D #4DDFF7
square
#BA4DF7 #F7654D #8AF74D #4DDFF7
split-complementary
#BA4DF7 #DFF74D #4DF765
monochromatic
#7F09C1 #A312F4 #BA4DF7 #D188FA #E7C2FC

Accessibility & contrast

On white

3.82
#BA4DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#BA4DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DF7
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DF7#FFFFFF#000000##000000
##BA4DF71.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba4df7;
/* rgb */ color: rgb(186, 77, 247);
/* oklch */ color: oklch(63.9% 0.247 310.6);
Tailwind
colors: {
  custom: {
    50: '#d387fb',
    500: '#ba4df7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4df7;
$custom-light: #d387fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4df7",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 247
  },
  "hsl": {
    "h": 278.471,
    "s": 91.398,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63869,
    "c": 0.24691,
    "h": 310.6
  },
  "luminance": 0.22462
}

Semantic roles & 50–950 ramp

primary
#BA4DF7
secondary
#C7EEB2
accent
#E60052
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA4DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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