#BA54FF#BA54FF

#BA54FF is a light, highly saturated violet. Relative luminance 0.240; OKLCH L 65.2% C 0.246 H 308.4°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#BA54FF
RGBrgb(186, 84, 255)
HSLhsl(276, 100%, 66%)
HSVhsv(276, 67%, 100%)
CMYKcmyk(27.1%, 67.1%, 0%, 0%)
CIE-LABlab(56.09, 68.49, -68.18)
CIE-LCHlch(56.09, 96.64, 315.13°)
OKLaboklab(65.16% 0.1528 -0.193)
OKLCHoklch(65.16% 0.246 308.4)
XYZxyz(41.4663, 24.0004, 97.0364)
Luminance0.2400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54FF #99FF54
analogous
#6554FF #BA54FF #FF54EF
triadic
#BA54FF #FFBA54 #54FFBA
tetradic
#BA54FF #FF6554 #99FF54 #54EFFF
square
#BA54FF #FF6554 #99FF54 #54EFFF
split-complementary
#BA54FF #EFFF54 #54FF65
monochromatic
#8100D9 #A117FF #BA54FF #D391FF #EBCEFF

Accessibility & contrast

On white

3.62
#BA54FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#BA54FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54FF
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54FF#FFFFFF#000000##000000
##BA54FF1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#2F88FB
Tritanopia (blue-blind)
#AF79A3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba54ff;
/* rgb */ color: rgb(186, 84, 255);
/* oklch */ color: oklch(65.2% 0.246 308.4);
Tailwind
colors: {
  custom: {
    50: '#d48bff',
    500: '#ba54ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba54ff;
$custom-light: #d48bff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54ff",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 255
  },
  "hsl": {
    "h": 275.789,
    "s": 100,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65156,
    "c": 0.2462,
    "h": 308.4
  },
  "luminance": 0.24
}

Semantic roles & 50–950 ramp

primary
#BA54FF
secondary
#D2F3BC
accent
#E6005D
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA54FF

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

Preview Lab → · Contrast checker → · Palette generator →

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