#BA58F7#BA58F7

#BA58F7 is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 65.1% C 0.233 H 309.8°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#BA58F7
RGBrgb(186, 88, 247)
HSLhsl(277, 91%, 66%)
HSVhsv(277, 64%, 97%)
CMYKcmyk(24.7%, 64.4%, 0%, 3.1%)
CIE-LABlab(56.22, 65.02, -63.52)
CIE-LCHlch(56.22, 90.90, 315.67°)
OKLaboklab(65.09% 0.1492 -0.1794)
OKLCHoklch(65.09% 0.233 309.8)
XYZxyz(40.5246, 24.1347, 90.5013)
Luminance0.2413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58F7 #95F758
analogous
#6A58F7 #BA58F7 #F758E5
triadic
#BA58F7 #F7BA58 #58F7BA
tetradic
#BA58F7 #F76A58 #95F758 #58E5F7
square
#BA58F7 #F76A58 #95F758 #58E5F7
split-complementary
#BA58F7 #E5F758 #58F76A
monochromatic
#810ACB #A21EF4 #BA58F7 #D292FA #EACDFD

Accessibility & contrast

On white

3.60
#BA58F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#BA58F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58F7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58F7#FFFFFF#000000##000000
##BA58F71.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FC
Deuteranopia (green-blind)
#4188F3
Tritanopia (blue-blind)
#B279A0
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba58f7;
/* rgb */ color: rgb(186, 88, 247);
/* oklch */ color: oklch(65.1% 0.233 309.8);
Tailwind
colors: {
  custom: {
    50: '#d38dfb',
    500: '#ba58f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba58f7;
$custom-light: #d38dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58f7",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 247
  },
  "hsl": {
    "h": 276.981,
    "s": 90.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.65092,
    "c": 0.23335,
    "h": 309.8
  },
  "luminance": 0.24134
}

Semantic roles & 50–950 ramp

primary
#BA58F7
secondary
#CFF0BB
accent
#E60058
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA58F7

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

Preview Lab → · Contrast checker → · Palette generator →

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