#BA58E9#BA58E9

#BA58E9 is a light, highly saturated purple. Relative luminance 0.233; OKLCH L 64.2% C 0.220 H 313.0°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#BA58E9
RGBrgb(186, 88, 233)
HSLhsl(281, 77%, 63%)
HSVhsv(281, 62%, 91%)
CMYKcmyk(20.2%, 62.2%, 0%, 8.6%)
CIE-LABlab(55.38, 62.09, -57.06)
CIE-LCHlch(55.38, 84.32, 317.42°)
OKLaboklab(64.22% 0.1499 -0.1604)
OKLCHoklch(64.22% 0.22 313)
XYZxyz(38.4448, 23.3028, 79.5477)
Luminance0.2330 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58E9 #87E958
analogous
#7158E9 #BA58E9 #E958CF
triadic
#BA58E9 #E9BA58 #58E9BA
tetradic
#BA58E9 #E97158 #87E958 #58CFE9
square
#BA58E9 #E97158 #87E958 #58CFE9
split-complementary
#BA58E9 #CFE958 #58E971
monochromatic
#7E17AF #A422E2 #BA58E9 #D08EF0 #E7C4F7

Accessibility & contrast

On white

3.71
#BA58E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#BA58E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58E9
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58E9#FFFFFF#000000##000000
##BA58E91.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A7FED
Deuteranopia (green-blind)
#4F87E6
Tritanopia (blue-blind)
#B57399
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba58e9;
/* rgb */ color: rgb(186, 88, 233);
/* oklch */ color: oklch(64.2% 0.220 313.0);
Tailwind
colors: {
  custom: {
    50: '#d28df1',
    500: '#ba58e9',
    950: '#000000',
  },
}
SCSS
$custom: #ba58e9;
$custom-light: #d28df1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58e9",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 233
  },
  "hsl": {
    "h": 280.552,
    "s": 76.72,
    "l": 62.941
  },
  "oklch": {
    "l": 0.64218,
    "c": 0.21953,
    "h": 313
  },
  "luminance": 0.23302
}

Semantic roles & 50–950 ramp

primary
#BA58E9
secondary
#C5E8B4
accent
#D90D4F
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140D17
muted
#837D85

Preview Lab

Preview with #BA58E9

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

Preview Lab → · Contrast checker → · Palette generator →

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