#BA58F0#BA58F0

#BA58F0 is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.6% C 0.226 H 311.4°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#BA58F0
RGBrgb(186, 88, 240)
HSLhsl(279, 84%, 64%)
HSVhsv(279, 63%, 94%)
CMYKcmyk(22.5%, 63.3%, 0%, 5.9%)
CIE-LABlab(55.80, 63.55, -60.31)
CIE-LCHlch(55.80, 87.61, 316.50°)
OKLaboklab(64.65% 0.1496 -0.17)
OKLCHoklch(64.65% 0.226 311.4)
XYZxyz(39.4647, 23.7108, 84.9189)
Luminance0.2371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58F0 #8EF058
analogous
#6E58F0 #BA58F0 #F058DA
triadic
#BA58F0 #F0BA58 #58F0BA
tetradic
#BA58F0 #F06E58 #8EF058 #58DAF0
square
#BA58F0 #F06E58 #8EF058 #58DAF0
split-complementary
#BA58F0 #DAF058 #58F06E
monochromatic
#8011BD #A320EB #BA58F0 #D190F5 #E8C8FA

Accessibility & contrast

On white

3.66
#BA58F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#BA58F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58F0
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58F0#FFFFFF#000000##000000
##BA58F01.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F5
Deuteranopia (green-blind)
#4888EC
Tritanopia (blue-blind)
#B3769C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba58f0;
/* rgb */ color: rgb(186, 88, 240);
/* oklch */ color: oklch(64.6% 0.226 311.4);
Tailwind
colors: {
  custom: {
    50: '#d38df6',
    500: '#ba58f0',
    950: '#000000',
  },
}
SCSS
$custom: #ba58f0;
$custom-light: #d38df6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58f0",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 240
  },
  "hsl": {
    "h": 278.684,
    "s": 83.516,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6465,
    "c": 0.22643,
    "h": 311.4
  },
  "luminance": 0.2371
}

Semantic roles & 50–950 ramp

primary
#BA58F0
secondary
#CAECB8
accent
#E00653
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA58F0

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

Preview Lab → · Contrast checker → · Palette generator →

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