#BA58E6#BA58E6

#BA58E6 is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.0% C 0.217 H 313.8°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#BA58E6
RGBrgb(186, 88, 230)
HSLhsl(281, 74%, 62%)
HSVhsv(281, 62%, 90%)
CMYKcmyk(19.1%, 61.7%, 0%, 9.8%)
CIE-LABlab(55.21, 61.47, -55.65)
CIE-LCHlch(55.21, 82.92, 317.85°)
OKLaboklab(64.04% 0.1499 -0.1563)
OKLCHoklch(64.04% 0.217 313.8)
XYZxyz(38.0199, 23.1329, 77.3099)
Luminance0.2313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58E6 #84E658
analogous
#7358E6 #BA58E6 #E658CB
triadic
#BA58E6 #E6BA58 #58E6BA
tetradic
#BA58E6 #E67358 #84E658 #58CBE6
square
#BA58E6 #E67358 #84E658 #58CBE6
split-complementary
#BA58E6 #CBE658 #58E673
monochromatic
#7D19AA #A423DE #BA58E6 #D08DEE #E6C2F6

Accessibility & contrast

On white

3.73
#BA58E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#BA58E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58E6
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58E6#FFFFFF#000000##000000
##BA58E61.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#217FEA
Deuteranopia (green-blind)
#5287E3
Tritanopia (blue-blind)
#B67297
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba58e6;
/* rgb */ color: rgb(186, 88, 230);
/* oklch */ color: oklch(64.0% 0.217 313.8);
Tailwind
colors: {
  custom: {
    50: '#d28dee',
    500: '#ba58e6',
    950: '#000000',
  },
}
SCSS
$custom: #ba58e6;
$custom-light: #d28dee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58e6",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 281.408,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64036,
    "c": 0.21658,
    "h": 313.8
  },
  "luminance": 0.23132
}

Semantic roles & 50–950 ramp

primary
#BA58E6
secondary
#C3E7B3
accent
#D60F4D
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140D16
muted
#837D84

Preview Lab

Preview with #BA58E6

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

Preview Lab → · Contrast checker → · Palette generator →

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