#BA58FB#BA58FB

#BA58FB is a light, highly saturated violet. Relative luminance 0.244; OKLCH L 65.3% C 0.237 H 308.9°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#BA58FB
RGBrgb(186, 88, 251)
HSLhsl(276, 95%, 66%)
HSVhsv(276, 65%, 98%)
CMYKcmyk(25.9%, 64.9%, 0%, 1.6%)
CIE-LABlab(56.47, 65.87, -65.34)
CIE-LCHlch(56.47, 92.79, 315.23°)
OKLaboklab(65.35% 0.149 -0.1847)
OKLCHoklch(65.35% 0.237 308.9)
XYZxyz(41.1485, 24.3843, 93.7870)
Luminance0.2438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58FB #99FB58
analogous
#6958FB #BA58FB #FB58EA
triadic
#BA58FB #FBBA58 #58FBBA
tetradic
#BA58FB #FB6958 #99FB58 #58EAFB
square
#BA58FB #FB6958 #99FB58 #58EAFB
split-complementary
#BA58FB #EAFB58 #58FB69
monochromatic
#8105D4 #A11CFA #BA58FB #D394FC #EBD0FE

Accessibility & contrast

On white

3.57
#BA58FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#BA58FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58FB
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58FB#FFFFFF#000000##000000
##BA58FB1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#3B89F7
Tritanopia (blue-blind)
#B07AA2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba58fb;
/* rgb */ color: rgb(186, 88, 251);
/* oklch */ color: oklch(65.3% 0.237 308.9);
Tailwind
colors: {
  custom: {
    50: '#d38dfd',
    500: '#ba58fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba58fb;
$custom-light: #d38dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58fb",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 251
  },
  "hsl": {
    "h": 276.074,
    "s": 95.322,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6535,
    "c": 0.23732,
    "h": 308.9
  },
  "luminance": 0.24384
}

Semantic roles & 50–950 ramp

primary
#BA58FB
secondary
#D2F2BD
accent
#E6005C
background
#FDF9FF
surface
#FBF1FF
border
#D4CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA58FB

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

Preview Lab → · Contrast checker → · Palette generator →

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