#BA4BF2#BA4BF2

#BA4BF2 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 63.3% C 0.245 H 311.9°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA4BF2
RGBrgb(186, 75, 242)
HSLhsl(280, 87%, 62%)
HSVhsv(280, 69%, 95%)
CMYKcmyk(23.1%, 69%, 0%, 5.1%)
CIE-LABlab(53.90, 69.57, -64.47)
CIE-LCHlch(53.90, 94.85, 317.18°)
OKLaboklab(63.33% 0.1633 -0.1821)
OKLCHoklch(63.33% 0.245 311.9)
XYZxyz(38.7898, 21.8831, 86.1677)
Luminance0.2188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BF2 #83F24B
analogous
#674BF2 #BA4BF2 #F24BD7
triadic
#BA4BF2 #F2BA4B #4BF2BA
tetradic
#BA4BF2 #F2674B #83F24B #4BD7F2
square
#BA4BF2 #F2674B #83F24B #4BD7F2
split-complementary
#BA4BF2 #D7F24B #4BF267
monochromatic
#7D0DB5 #A412EE #BA4BF2 #D084F6 #E6BDFA

Accessibility & contrast

On white

3.91
#BA4BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#BA4BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BF2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BF2#FFFFFF#000000##000000
##BA4BF21.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#3783EE
Tritanopia (blue-blind)
#B36F99
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba4bf2;
/* rgb */ color: rgb(186, 75, 242);
/* oklch */ color: oklch(63.3% 0.245 311.9);
Tailwind
colors: {
  custom: {
    50: '#d386f7',
    500: '#ba4bf2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bf2;
$custom-light: #d386f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bf2",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 242
  },
  "hsl": {
    "h": 279.88,
    "s": 86.528,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6333,
    "c": 0.2446,
    "h": 311.9
  },
  "luminance": 0.21882
}

Semantic roles & 50–950 ramp

primary
#BA4BF2
secondary
#C2EBAE
accent
#E3024E
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA4BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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