#BA51FF#BA51FF

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

Color values

HEX#BA51FF
RGBrgb(186, 81, 255)
HSLhsl(276, 100%, 66%)
HSVhsv(276, 68%, 100%)
CMYKcmyk(27.1%, 68.2%, 0%, 0%)
CIE-LABlab(55.63, 69.78, -68.92)
CIE-LCHlch(55.63, 98.07, 315.35°)
OKLaboklab(64.83% 0.1559 -0.1952)
OKLCHoklch(64.83% 0.25 308.6)
XYZxyz(41.2385, 23.5446, 96.9605)
Luminance0.2354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51FF #96FF51
analogous
#6351FF #BA51FF #FF51ED
triadic
#BA51FF #FFBA51 #51FFBA
tetradic
#BA51FF #FF6351 #96FF51 #51EDFF
square
#BA51FF #FF6351 #96FF51 #51EDFF
split-complementary
#BA51FF #EDFF51 #51FF63
monochromatic
#8100D6 #A214FF #BA51FF #D28EFF #EBCBFF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA51FF#FFFFFF#000000##000000
##BA51FF1.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)
#0081FF
Deuteranopia (green-blind)
#2A86FB
Tritanopia (blue-blind)
#AF77A2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba51ff;
/* rgb */ color: rgb(186, 81, 255);
/* oklch */ color: oklch(64.8% 0.250 308.6);
Tailwind
colors: {
  custom: {
    50: '#d489ff',
    500: '#ba51ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba51ff;
$custom-light: #d489ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51ff",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 276.207,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.64828,
    "c": 0.24979,
    "h": 308.6
  },
  "luminance": 0.23544
}

Semantic roles & 50–950 ramp

primary
#BA51FF
secondary
#D0F3B9
accent
#E6005B
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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