#BA58F3#BA58F3

#BA58F3 is a light, highly saturated violet. Relative luminance 0.239; OKLCH L 64.8% C 0.229 H 310.7°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#BA58F3
RGBrgb(186, 88, 243)
HSLhsl(278, 87%, 65%)
HSVhsv(278, 64%, 95%)
CMYKcmyk(23.5%, 63.8%, 0%, 4.7%)
CIE-LABlab(55.98, 64.18, -61.69)
CIE-LCHlch(55.98, 89.02, 316.13°)
OKLaboklab(64.84% 0.1495 -0.174)
OKLCHoklch(64.84% 0.229 310.7)
XYZxyz(39.9140, 23.8905, 87.2853)
Luminance0.2389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58F3 #91F358
analogous
#6C58F3 #BA58F3 #F358DF
triadic
#BA58F3 #F3BA58 #58F3BA
tetradic
#BA58F3 #F36C58 #91F358 #58DFF3
square
#BA58F3 #F36C58 #91F358 #58DFF3
split-complementary
#BA58F3 #DFF358 #58F36C
monochromatic
#800EC3 #A21FEF #BA58F3 #D291F7 #E9CAFB

Accessibility & contrast

On white

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

On black

5.78
#BA58F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58F3
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58F3#FFFFFF#000000##000000
##BA58F31.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F8
Deuteranopia (green-blind)
#4588EF
Tritanopia (blue-blind)
#B3779E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba58f3;
/* rgb */ color: rgb(186, 88, 243);
/* oklch */ color: oklch(64.8% 0.229 310.7);
Tailwind
colors: {
  custom: {
    50: '#d38df8',
    500: '#ba58f3',
    950: '#000000',
  },
}
SCSS
$custom: #ba58f3;
$custom-light: #d38df8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58f3",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 243
  },
  "hsl": {
    "h": 277.935,
    "s": 86.592,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64838,
    "c": 0.2294,
    "h": 310.7
  },
  "luminance": 0.2389
}

Semantic roles & 50–950 ramp

primary
#BA58F3
secondary
#CCEEB9
accent
#E30255
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA58F3

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

Preview Lab → · Contrast checker → · Palette generator →

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