#BA58F4#BA58F4

#BA58F4 is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.9% C 0.230 H 310.4°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#BA58F4
RGBrgb(186, 88, 244)
HSLhsl(278, 88%, 65%)
HSVhsv(278, 64%, 96%)
CMYKcmyk(23.8%, 63.9%, 0%, 4.3%)
CIE-LABlab(56.04, 64.39, -62.15)
CIE-LCHlch(56.04, 89.49, 316.01°)
OKLaboklab(64.9% 0.1494 -0.1754)
OKLCHoklch(64.9% 0.23 310.4)
XYZxyz(40.0654, 23.9511, 88.0828)
Luminance0.2395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58F4 #92F458
analogous
#6C58F4 #BA58F4 #F458E0
triadic
#BA58F4 #F4BA58 #58F4BA
tetradic
#BA58F4 #F46C58 #92F458 #58E0F4
square
#BA58F4 #F46C58 #92F458 #58E0F4
split-complementary
#BA58F4 #E0F458 #58F46C
monochromatic
#800DC5 #A21FF0 #BA58F4 #D291F8 #E9CBFC

Accessibility & contrast

On white

3.63
#BA58F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#BA58F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58F4
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58F4#FFFFFF#000000##000000
##BA58F41.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F9
Deuteranopia (green-blind)
#4488F0
Tritanopia (blue-blind)
#B2779F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba58f4;
/* rgb */ color: rgb(186, 88, 244);
/* oklch */ color: oklch(64.9% 0.230 310.4);
Tailwind
colors: {
  custom: {
    50: '#d38df8',
    500: '#ba58f4',
    950: '#000000',
  },
}
SCSS
$custom: #ba58f4;
$custom-light: #d38df8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58f4",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 244
  },
  "hsl": {
    "h": 277.692,
    "s": 87.64,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64901,
    "c": 0.23039,
    "h": 310.4
  },
  "luminance": 0.2395
}

Semantic roles & 50–950 ramp

primary
#BA58F4
secondary
#CDEEB9
accent
#E40156
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA58F4

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

Preview Lab → · Contrast checker → · Palette generator →

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