#BA54EF#BA54EF

#BA54EF is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 64.1% C 0.231 H 311.9°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#BA54EF
RGBrgb(186, 84, 239)
HSLhsl(279, 83%, 63%)
HSVhsv(279, 65%, 94%)
CMYKcmyk(22.2%, 64.9%, 0%, 6.3%)
CIE-LABlab(55.09, 65.13, -60.89)
CIE-LCHlch(55.09, 89.16, 316.93°)
OKLaboklab(64.12% 0.1541 -0.1716)
OKLCHoklch(64.12% 0.231 311.9)
XYZxyz(38.9972, 23.0127, 84.0322)
Luminance0.2301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54EF #89EF54
analogous
#6C54EF #BA54EF #EF54D6
triadic
#BA54EF #EFBA54 #54EFBA
tetradic
#BA54EF #EF6C54 #89EF54 #54D6EF
square
#BA54EF #EF6C54 #89EF54 #54D6EF
split-complementary
#BA54EF #D6EF54 #54EF6C
monochromatic
#7F11B7 #A31CEA #BA54EF #D18CF4 #E7C4F9

Accessibility & contrast

On white

3.75
#BA54EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#BA54EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54EF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54EF#FFFFFF#000000##000000
##BA54EF1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#4586EB
Tritanopia (blue-blind)
#B4739B
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba54ef;
/* rgb */ color: rgb(186, 84, 239);
/* oklch */ color: oklch(64.1% 0.231 311.9);
Tailwind
colors: {
  custom: {
    50: '#d38bf5',
    500: '#ba54ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba54ef;
$custom-light: #d38bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54ef",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 279.484,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64117,
    "c": 0.23069,
    "h": 311.9
  },
  "luminance": 0.23012
}

Semantic roles & 50–950 ramp

primary
#BA54EF
secondary
#C7EBB4
accent
#DF0650
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA54EF

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

Preview Lab → · Contrast checker → · Palette generator →

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