#BA58ED#BA58ED

#BA58ED is a light, highly saturated violet. Relative luminance 0.235; OKLCH L 64.5% C 0.223 H 312.1°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#BA58ED
RGBrgb(186, 88, 237)
HSLhsl(279, 81%, 64%)
HSVhsv(279, 63%, 93%)
CMYKcmyk(21.5%, 62.9%, 0%, 7.1%)
CIE-LABlab(55.62, 62.92, -58.92)
CIE-LCHlch(55.62, 86.20, 316.88°)
OKLaboklab(64.46% 0.1497 -0.1659)
OKLCHoklch(64.46% 0.223 312.1)
XYZxyz(39.0227, 23.5340, 82.5912)
Luminance0.2353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA58ED #8BED58
analogous
#6F58ED #BA58ED #ED58D5
triadic
#BA58ED #EDBA58 #58EDBA
tetradic
#BA58ED #ED6F58 #8BED58 #58D5ED
square
#BA58ED #ED6F58 #8BED58 #58D5ED
split-complementary
#BA58ED #D5ED58 #58ED6F
monochromatic
#7F14B7 #A321E7 #BA58ED #D18FF3 #E8C6F9

Accessibility & contrast

On white

3.68
#BA58ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#BA58ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA58ED
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA58ED#FFFFFF#000000##000000
##BA58ED1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D80F2
Deuteranopia (green-blind)
#4B87EA
Tritanopia (blue-blind)
#B4759B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba58ed;
/* rgb */ color: rgb(186, 88, 237);
/* oklch */ color: oklch(64.5% 0.223 312.1);
Tailwind
colors: {
  custom: {
    50: '#d38df3',
    500: '#ba58ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba58ed;
$custom-light: #d38df3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba58ed",
  "rgb": {
    "r": 186,
    "g": 88,
    "b": 237
  },
  "hsl": {
    "h": 279.463,
    "s": 80.541,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64463,
    "c": 0.22348,
    "h": 312.1
  },
  "luminance": 0.23533
}

Semantic roles & 50–950 ramp

primary
#BA58ED
secondary
#C8EBB6
accent
#DD0951
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA58ED

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

Preview Lab → · Contrast checker → · Palette generator →

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