#BA50FF#BA50FF

#BA50FF is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.7% C 0.251 H 308.7°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#BA50FF
RGBrgb(186, 80, 255)
HSLhsl(276, 100%, 66%)
HSVhsv(276, 69%, 100%)
CMYKcmyk(27.1%, 68.6%, 0%, 0%)
CIE-LABlab(55.48, 70.20, -69.16)
CIE-LCHlch(55.48, 98.54, 315.43°)
OKLaboklab(64.72% 0.1569 -0.1959)
OKLCHoklch(64.72% 0.251 308.7)
XYZxyz(41.1647, 23.3971, 96.9359)
Luminance0.2340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50FF #95FF50
analogous
#6250FF #BA50FF #FF50EC
triadic
#BA50FF #FFBA50 #50FFBA
tetradic
#BA50FF #FF6250 #95FF50 #50ECFF
square
#BA50FF #FF6250 #95FF50 #50ECFF
split-complementary
#BA50FF #ECFF50 #50FF62
monochromatic
#8100D5 #A213FF #BA50FF #D28DFF #EACAFF

Accessibility & contrast

On white

3.70
#BA50FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#BA50FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50FF
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50FF#FFFFFF#000000##000000
##BA50FF1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FF
Deuteranopia (green-blind)
#2886FB
Tritanopia (blue-blind)
#B077A2
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba50ff;
/* rgb */ color: rgb(186, 80, 255);
/* oklch */ color: oklch(64.7% 0.251 308.7);
Tailwind
colors: {
  custom: {
    50: '#d489ff',
    500: '#ba50ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba50ff;
$custom-light: #d489ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50ff",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 255
  },
  "hsl": {
    "h": 276.343,
    "s": 100,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64721,
    "c": 0.25096,
    "h": 308.7
  },
  "luminance": 0.23396
}

Semantic roles & 50–950 ramp

primary
#BA50FF
secondary
#CFF3B8
accent
#E6005A
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA50FF

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

Preview Lab → · Contrast checker → · Palette generator →

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