#BA58F9#BA58F9

#BA58F9 is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 65.2% C 0.235 H 309.3°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#BA58F9
RGBrgb(186, 88, 249)
HSLhsl(277, 93%, 66%)
HSVhsv(277, 65%, 98%)
CMYKcmyk(25.3%, 64.7%, 0%, 2.4%)
CIE-LABlab(56.35, 65.45, -64.44)
CIE-LCHlch(56.35, 91.84, 315.45°)
OKLaboklab(65.22% 0.1491 -0.1821)
OKLCHoklch(65.22% 0.235 309.3)
XYZxyz(40.8349, 24.2588, 92.1354)
Luminance0.2426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58F9 #97F958
analogous
#6958F9 #BA58F9 #F958E7
triadic
#BA58F9 #F9BA58 #58F9BA
tetradic
#BA58F9 #F96958 #97F958 #58E7F9
square
#BA58F9 #F96958 #97F958 #58E7F9
split-complementary
#BA58F9 #E7F958 #58F969
monochromatic
#8107CF #A21DF7 #BA58F9 #D293FB #EBCEFD

Accessibility & contrast

On white

3.59
#BA58F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#BA58F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58F9
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58F9#FFFFFF#000000##000000
##BA58F91.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FE
Deuteranopia (green-blind)
#3E88F5
Tritanopia (blue-blind)
#B179A1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba58f9;
/* rgb */ color: rgb(186, 88, 249);
/* oklch */ color: oklch(65.2% 0.235 309.3);
Tailwind
colors: {
  custom: {
    50: '#d38dfc',
    500: '#ba58f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba58f9;
$custom-light: #d38dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58f9",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 249
  },
  "hsl": {
    "h": 276.522,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65221,
    "c": 0.23534,
    "h": 309.3
  },
  "luminance": 0.24258
}

Semantic roles & 50–950 ramp

primary
#BA58F9
secondary
#D1F1BC
accent
#E6005A
background
#FDF9FF
surface
#FBF1FF
border
#D4CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA58F9

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

Preview Lab → · Contrast checker → · Palette generator →

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